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

[pygame] CPU 100%



Hi there,

My little pygame is likely to use all the usable resource of CPU, and
sometimes it's using 100% CPU. I wonder whether this happens to your
pygame too.

My game contains 2 parts, one is the interactive parts and responds
when the user click the mouse. The other part is the timer part, it
read the system time all the time.

The main loop of the game is while(1) function. So I wonder if there's
a way to save the CPU resource.

Thanks,
Chuang