[cairo] PyCairo and graphics flicker:
jeremy at emperorlinux.com
Fri Dec 16 18:01:51 PST 2005
I'm writing an application using PyGTK/PyCairo and I had a quick
question about some pseudo-animation I'm trying to implement.
If I do something like the following:
...I can force the context to repaint itself every 2 seconds. However,
when I do it this way, I get a very visible screen flicker.
ON THE OTHER HAND...
If I bind that same render function to the "expose" event (so that it
redraws itself whenever GTK asks it to), everything is much smoother.
The function is called perhaps 5-10 times per second, and there is never
any visible flicker.
What is GTK doing that I'm not? :) Is the wrong place to be asking this
Thanks in advance...
More information about the cairo