[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] New on the mailing list with a strange FPS behavior
Look at the module gc in the global module index of Python docs, but
in a pinch:
import gc
...
gc.collect( )
Don't put into a tight loop, this waste cpu time.
claxo
On 12 Nov 2007 at 8:30, Ghislain Leveque wrote:
> 2007/11/12, claxo <clazzt@xxxxxxxxxxxx>:
> > On 11 Nov 2007 at 22:41, Ghislain Leveque wrote:
> > > Today I've come into a strange behavior with my rendering loop.
>
> > 3. Memory garbage collection kicks in. you can try to do a explicit
> > garbage collection after each M frames to see if max time is reduced.
>
> How do I do an explicite garbage collection ?
>
> Thanks
>
> --
> Ghislain Lévêque
>
>
>