[wxPython-users] Animation question
Andrea Gavana
andrea.gavana at gmail.com
Mon Apr 2 02:46:02 PDT 2007
Hi Luca,
On 4/2/07, Luca Politti wrote:
> I'm woking for an animation with wxPython. I need to move an image
> and zoom it. I've tried with DCs, using double buffer method to reduce
> the flicking. So I've tested the animation on 2 computers: they have
> almost the same features, (the bigger difference is on the graphical
> board: computer1 mounts geForce, computer2 Ati)but on computer1 the
> animation works slowly, and the process needs the 100% of CPU. Computer2
> takes this animation more easy and needs only 30-35% of CPU and it
> results more fluid and nice to see. I'll need to run this animation on a
> low performance computers...maybe I'm doing something wrong...
>
> Any ideas?
Two or three of them:
1) Try FloatCanvas: wx.lib.floatcanvas
2) Are you using wx.BufferedPaintDC() together with an empty
wx.EVT_ERASE_BACKGROUND?
3) If you post some code, I am sure some DC guru can help you.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
More information about the wxpython-users
mailing list