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

Re: [pygame] Hardware acceleration



Simon Pickles wrote:
Specifying HWSURFACE and DOUBLEBUF for my display has no effect on my framerate.

What is the correct procedure to enable hardware acceleration?

I am finding pygame so slow I am considering a return to Windows and DirectX for an upcoming project.

SDL usually only does hardware acceleration when in fullscreen modes. Also, I think recent version of SDL have switched to not using DirectX by default on Windows, so you may have to add os.environ["SDL_VIDEO_DRIVER"] = "directx" before you initialize anything for Pygame.