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

Re: [pygame] Semi-Neophyte requires jerky animation assistance



Wont help a lot but got the same behaviour on a simple small image moved with the mouse cursor/coordinates. No other task is running (no clock.tick(), no refreshing backgrounds, ...) - experienced on Mac and Windows (a bit less on Windows, cause that machine was a bit faster). Had no time yet to check the tasks in the background or if any events (are you using time consuming events?) need a lot of CPU.

Regards
Farai


Am 10.04.2006 um 18:44 schrieb Kevin Turner:

Some information for the enlightenment of all. I'm running this currently on Windows XP, I've been using clock.tick(), and as currently my program hasn't yet implemented features such as collision detection or anything requiring extensive disk I/O (no sound or image loading).

In response to Andrew, lowering the frame rate does not remove the effect, but simply reduce its frequency. In aiming for 30 fps as opposed to 60, it occurs half as often. Given that all effects of my program also slow down, I suspect that it has something to do with how I'm using clock.tick() and the general functions of my program.

I'm going to do some recoding such that regardless of 30 or 60 fps, it should run at the same "speed", and see if the problem remains.

Thanks for your help so far.

-Kevin Turner