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

Re: [pygame] Pygame performance on Linux?



Ethan Glasser-Camp(e)k dio:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

altern wrote:
I get 140 fps on a P4 1700 with Rene's script. I have an ATI Radeon 8500
with hardware acceleration. To know if you get hardware acceleration
just run "glxinfo" command and see if you get somewhere "direct
rendering: Yes"

Does SDL use DRI, even for 2d graphics? My understanding was that DRI
was only for 3d stuff like OpenGL.

sorry i think it is only if you do set the OPENGL flag in set_mode(), something like this :
pygame.display.set_mode((800, 600), HWSURFACE | OPENGL | DOUBLEBUF)

I mostly use OPENGL for my stuff. But if i remember well you can tell pygame to use the hardware acceleration for the normal pygame 2D to improve performance.

enrike