On 17.08.2012, at 14:06, "MacArthur, Ian (SELEX GALILEO, UK)" 
<ian.macart...@selexgalileo.com> wrote:

>> Just in case anyone fancies playing along at home, and did not see the
>> original posts in the STR, here's the version of the test code I'm
>> currently using, based on the OP's post but tweaked to build on my system,
>> and a small Makefile to build it with...
> 
> Just for kicks'n'giggles I ported the code to WinXP using the 
> QueryPerformanceCounter() API to get timings, and I get...
> 
> $ ./qix
> New control cost 0.02(ms)
> Show window cost 20.73(ms)
> 
> ian.macarthur@DESDAF599172 /d/examples/qix-win-times

I get 0/166ms on OS X which is not surprising though because OS X allocates 
multiple buffers for each window and calculates animation and transparencies.


121ms are spent in Fl::show
  96ms to open the connection to the display 
  25ms to create and show the OS window
45ms spent in Fl::run/flush

Time spent inside the app alone is almost none. It's the calls to the OS that 
are costly.
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to