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

Re: [pygame] is fast opengl a possibility in pygame?



On 8/24/05, Drewcore <drewsph@xxxxxxxxx> wrote:
> is creating a playable game (speed-wise) a possibility with
> pygame and pyopengl?

Absolutely. It's just that function calls have such a high overhead in
Python, that you have to minimize the frequency and number of OpenGL
calls you do from your code. This is pretty easily achieved by liberal
use of opengl display lists and vertex/color/texture-arrays. With
display lists, you can render a complex scene with a single function
call (glCallList), so the overhead of Python stays minimal.

-- 
Sami Hangaslammi