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

Re: [pygame] Substantial Lag



In order to save CPU power, do I need to put in a pygame.time.delay(10) at the end of my event loop?


 No.

 clock() does already that, forcing your program to run at N fps by "idle-ing" it enough time to run it at the desired speed.



--
Santiago Romero
Ubuntu GNU/Linux
http://www.sromero.org