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

Re: [pygame] How come when running games with pygame it takes a load of cpu?



On Sun, 9 Sep 2007, Lamonte Harris wrote:
> self.clock.tick(60) to self.clock.tick(10)  Actually is working out quiet
> well thanks :).  Learned something new.

It's important to note that above a certain threshold clock.tick() will 
busy-wait (ie. consume CPU) to get the timing correct because the clocks 
available aren't capable of very precise timing.


    Richard