Re: [PyOpenGL-Users] Pyopengl same as opengl?
Brought to you by:
mcfletch
From: Maciej K. <ma...@dg...> - 2006-06-13 15:26:19
|
On Mon, Jun 12, 2006 at 05:57:56PM +0200, altern wrote: > Looks like none has answered you about this. I cannot give too much info > as I have hardly use openGL outside of python. But as far as I > understand pyopengl is pretty fast as it is just a tiny layer of python > on top of C opengl code, what it is NOT that fast compared to C, is > Python. That is correct, PyOpenGL is just a (technically) simple set of wrappers around the regular OpenGL calls in the OpenGL library. The overhead incurred by this extra (thin) layer is usually negligible for most applications. > This means that if you do very simple program your performance > could be ok, but if there is a lot of python code to be executed every > frame then you will find that the frame rate will drop. I agree, the main bottleneck will be your other code. Still, one can actually do quite a lot with Python and PyOpenGL, even if you desire interactive rates. Check out the (hundreds?) of games developed with PyGame (www.pygame.org), a library for writing games with Python and PyOpenGL. -- Maciej Kalisiak mac "at" dgp.toronto.edu www.dgp.toronto.edu/~mac |