Re: [PyOpenGL-Users] glVertexArrayd slows performance
Brought to you by:
mcfletch
From: Simon W. <sim...@gm...> - 2006-02-05 02:06:43
|
On 2/5/06, Douglas Taylor <dt...@sk...> wrote: > By timing parts of the code it spends most of it's time in > glVertexPointerd(xyData); > the call to glDrawArrays(GL_POINTS, 0, len(xstart)); is quite fast. > Am I doing something wrong here? Any help would be > greatly appreciated. Thanks, Try sending the array to OpenGL via one glVertexPointerd call, before you start the render loop. Then, call glDrawArrays once per frame as usual. There is no need to send the array down the pipe for every frame, unless of course the vertex data changes every frame. -Sw. |