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

Re: [pygame] Weird lag



Are creating and destroying lots of objects?  It could be Garbage Collection.

On Sat, Feb 28, 2009 at 2:21 PM, Daniel Mateos <daniel@xxxxxxxxx> wrote:
> Hey again,
>
> In a 2d scroller game im making i seem to get FPS drops at random
> points, i am using the Clock class to keep it at a constant 60 fps and
> it never seems to go above 9%-15% cpu usage so im not sure what could be
> causing it.
>
> Seems to run well for 90% of the time with spikes that drop the fps to
> 10-40 at some points in the level, other times it runs fine at exactly
> the same points and its not doing anything extra doing these spikes, im
> bliting about 100-200 sprites per frame.
>
> Some quick profiler output, doesnt really tell me much tho:
> ... snip ...
> Any help or suggestions for better profileing/tracking down the lag
> would be good :)
>
> --
> Daniel Mateos
> http://daniel.mateos.cc
>
>



-- 
Andrew Ulysses Baker
"failrate"

Studying is not for achieving promotions or improving your
circumstances. Studying teaches us how to enjoy life, where to begin
and end things and how to behave in between. - Horiyoshi III