[Tutor] Games

Alan Gauld alan.gauld at btinternet.com
Wed Feb 6 18:07:47 CET 2008


"Seon Kang" <seon.kang at gmail.com> wrote

> When I run some of my games on python,  I notice they seem to lag 
> and take
> up a large portion of my CPU when the game itself is actually pretty 
> simple.
> why does this happen? I run a window XP and my computer should have 
> no
> problems with this simple of a game. Is the problem in my 
> programming? Are
> there any things to look out for in a program that would get rid of 
> this lag
> problem?

Its hard to guess without examples. But classic things to be aware
of are infinite loops while waiting for input. These will keep the 
computer
busy even while its not really doing anything...

Alan G 




More information about the Tutor mailing list