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

Re: [pygame] PyGame performance tips



> complex map will result in horrible performance. (I would like to use
> alpha blending, animations, and draw several more layers of tiles.)

Without looking at your code, I think you may be interested in using
OpenGL to perform your graphics operations, esp. if you want to
perform smooth fullscreen updates on every frame.

If you have an 3D card with hardware accellerated OpenGL (and
associated drivers), take a look at
http://metaplay.com.au/tarballs/LGT.tar.bz2, it has some simple
classes which simplify OpenGL 2D operations, including alpha blending,
sprite-strip animation, rotations and scaling.

Sw.