Re: Roundtrip in gdk_flush()



Owen Taylor <otaylor redhat com> writes:

> (And I can't really think of why they _would_ be drawn more quickly for
> a uniprocessor system.)
> 
> Maybe a better metric would be frame rate -- how many times gdk_window_process_all_updates() 
> is called per second. 

Ok, I tried measuring the average time between the last 100
process_all_updates(), and you are right, there is no substantial
difference (on my uniprocessor system).


Output with gdk_flush():

[...]
average time between gdk_flush()'es:   0.016147
average time between gdk_flush()'es:   0.016238
average time between gdk_flush()'es:   0.016008
average time between gdk_flush()'es:   0.016256
average time between gdk_flush()'es:   0.016021
average time between gdk_flush()'es:   0.016022

Output with XFlush():

[...]
average time between gdk_flush()'es:   0.015598
average time between gdk_flush()'es:   0.015921
average time between gdk_flush()'es:   0.015668
average time between gdk_flush()'es:   0.015967
average time between gdk_flush()'es:   0.015713
average time between gdk_flush()'es:   0.015893
average time between gdk_flush()'es:   0.015634


Søren



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]