Hi list.
Currently I'm wondering why this program produces nearly 100%
cpu load:
while 1:
for event in pygame.event.get():
if event.type == KEYDOWN or event.type == QUIT:
if event.key == K_ESCAPE:
import sys
sys.exit()
I tested my whole game and didn't think it would be this simple
code sample that produces this load. I'm not using clock here
since i thought *clock* would be the problem.
Have you an idea what the reason could be? I mean.. I just do
nothing other than looping and waiting for a key input. Why
is there such an high cpu-load? Is this 'normal'?