On Tue, Nov 30, 2010 at 6:26 PM, Jonathan Hartley <[email protected]>wrote:

> The "1.5 to 3 times slower than pyglet bindings" I mentioned was
> measured using PyOpenGL-accelerate, the Cython module for PyOpenGL. I
> may have been doing it wrong. For one thing, Mike expects I'll see
> better performance using VBOs and uniforms instead of vertex arrays
> and modelview transforms. On the other hand, I expect using those will
> also provide better performance with pyglet bindings too.
>
> Cheers,
>
>  Jonathan


VAO will likely do more for you than anything else in this respect. It
basically reduces the entire OpenGL commands for rending an object to
BindVAO -> Render, cutting out all the calls to bind each buffer and pointer
separately.

While this doesn't actually make much difference at the OpenGL end (the
driver basically just does the other bind calls for you), it represents a
huge savings in calls across that expensive ctypes <--> python bridge.

-- 
Tristam MacDonald
http://swiftcoder.wordpress.com/

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to