Am 10.04.16 um 18:17 schrieb Brad Lanam:
> On Sunday, April 10, 2016 at 4:52:32 AM UTC-7, Christian Gollwitzer wrote:
>> Am 10.04.16 um 00:41 schrieb Francois Tonneau:
>>> Performance seems good to me on a netbook Asus Eee pc with 1 GB of
>>> ram at most. In contrast, I recall that some themes I found on the
>>> web (plastik or keramik?) were slow at repainting elements covered by
>>> top menus. Could this be due to the border size used in 'ttk::style
>>> element create'? If the central area of the raw image consists of 1
>>> pixel, the image is slow to be repainted under stretching.
>>
>> I tried plastik, which looks nice (KDE lookalike), but indeed had slow
>> performance. Maybe if the reason for the performance penalty can be
>> found, it might be possible to fix it in the Tk core.
>
> Is there a specific way you are testing performance?
Maybe I should try it on X11, sure, but under OSX (where it's
technically not needed), they are slow as hell. I run the demo.tcl from
the folder you gave me. Then I grab the right window border and resize
the window with the mouse. Under the aqua theme, it jumps a bit, but it
is still acceptible. Under the Keramik theme, there are jumps with ~1s.
Under arc, it seems to the user that the program is not reacting at all.
If I do the same test with a native App like Thunderbird, it runs fully
smooth.
I could even segfault Tk using this test, by resizing too fast. There
seems to be a race condition in the OSX Tk. Not sure how to hunt it
down, though.
> I'm trying out the different themes in my application (I've got them all in
> there and allow the user to choose), and I don't notice any slowdown.
I've uploaded videos from my system, so you can see yourself:
Thunderbird
https://youtu.be/BDwtyVSYBUo
Tcl/Tk
https://youtu.be/gcdfNIhtCtE
While resizing the Tcl program, the activity goes to 100%, so this is
really a CPU bound task inside Tk. OTOH I can't understand why blitting
pixel images needs so much CPU.
> I would add 'arc' and 'clearlooks' to the Tk core also.
Arc looks really nice, but it has the original pixmaps from Gtk+ and is
therefore under the GPL.
Christian