Hi Paul,

By default the OSG usages display lists that have to be compiled once at
start up and then are reused there after so that subsequent glDrawArray
calls are avoided.

Robert.

On 11 April 2013 13:15, Paul Heraty <[email protected]> wrote:

> Hi,
>
> I'm using some profiling tools to try to understand how to optimize an OSG
> application built on osgviewer. In fact, for the purpose of this question,
> I am just running osgview cow.osg.
>
> When I look at the rendering calls, I can see that glDrawArrays get's
> called around 4000 times at application startup, but this quickly drops
> down to 0 calls after about 1 second. I can see that there are ~1500
> vertices reported, but this number also drops off to zero after 1 second.
>
> However, I can see that the GPU cores are kept busy constantly, and I
> achieve a frame rate of 120fps after an initial ramp of about 1s also
> (corresponds to the drop off in dlDraw calls).
>
> What confuses me most is that I would expect the nmuber of glDrawArray
> calls to remain relatively constant throughout the application lifetime, as
> the cow data model is not changing.
>
> Am I missing something?
>
> Thank you!
>
> Cheers,
> Paul
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=53542#53542
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to