2011/4/2 Ian Mallett <geometr...@gmail.com> > On Sat, Apr 2, 2011 at 8:42 AM, João Pinto <lamego.pi...@gmail.com> wrote: > >> Hello, >> I have just recently started to experiment with pygame. >> >> I have created some code to show some letter boxes, strangely it's using >> 30-40% of one core on my laptop, something that I would not expect for such >> trivial code. >> >> I am familiar with the implications of the pygame event loop, I am using >> Clock.tick(FPS)**** which I believe should avoid the high cpu usage. >> >> My code is available from: >> https://www.dropbox.com/s/oxyyzhlsu16ej95/wpop.tar.gz >> >> Run it with: python main.py >> >> Can someone provide me an hint about the reason for the high cpu usage and >> how to minimize it ? >> > I can't see a measurable difference in CPU usage here. Intel Core 2 Duo @ > 2.4 GHz. >
Hello Ian, that's odd. On an Intel Core i7 CPU 920 @ 2.67GHz the python process is using around 25% CPU (from a single core). Thanks for the testing. -- João Pinto IRC: joaopinto @ irc.freenode.net Jabber ID: lamego.pi...@gmail.com