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

[pygame] why is sometimes so much time between 2 frames ? (400 milliseconds instead of 30)



I wrote a pygame program with sprites bouncing around. fps and time
between 2 frames is displayed (as number and as green bars).

If many sprites are present, sometimes (like each half minute) there is
a extreme huge value of passed time between 2 frames. (>400 instead of
the usual 30).

Is this some kind of garbage collection ? Is it because i copy a sprite
group (for collision check) ?

http://www.spielend-programmieren.at/wiki/doku.php?id=en:code:pygame:zeitproblem

greetings,
	-Horst

-- 
Horst JENS
horst.jens@xxxxxxxxxxxxxxxxxxxxxxxxx
http://www.spielend-programmieren.at

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil