Reducing pygame cpu-load to < 4 %

C. Scott Ananian cscott at laptop.org
Tue Dec 11 04:28:55 EST 2007


I have patched Pippy's examples to follow best practices for pygame,
so that the frame rate is limited to 20 FPS and games automatically
pause and suspend after 20 seconds of inactivity.  (These defaults can
be overridden.)

The patch is pullable from:
http://dev.laptop.org/git?p=users/cscott/pippy-activity-tmp;a=commitdiff;h=9df72c5591aee015089a4e96f9403183262dcc01
 --scott

-- 
                         ( http://cscott.net/ )



More information about the Devel mailing list