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

Re: [pygame] Re: Pygame, pyglet, 2d, 3d, and performance (reflexions/discussion)

On Mon, Feb 13, 2012 at 6:04 AM, Santiago Romero <sromero@xxxxxxxxxxx> wrote:

> Some do have used OpenGL with Pygame for ever, with PyOpenGL etc. I think ..

Can pygame (event system, "game loop", etc) can be used among with PyOpenGl, using the last one just for "the blitting"?

I mean: can an already working pygame game be modified only in the "blitting" part to render the sprites with OpenGL (modifying only the blit()?

Yeah that's pretty much how it works. It's the same as you would do for an SDL/OpenGL game, if I understand correctly.

But I don't think anyone's gotten PyOpenGL working on Android, so if you need to deploy to mobile devices, that would seem to be a dealbreaker.

I have to say, performance seems to be a really high priority for you, compared with most people on this list. If you're always going to want great performance from the weakest devices available, python and Pygame are clearly at a disadvantage.

Incidentally, I'd love to see the SDL game you ported to HTML5 if you feel like sharing!