[osg-users] Issue with setCompileOnNextDraw

Robert Osfield robert.osfield at gmail.com
Wed Dec 4 07:16:45 PST 2019


Hi David,

On Wed, 4 Dec 2019 at 14:50, Heitbrink, David A <david-heitbrink at uiowa.edu>
wrote:

> I am doing a setCompileOnNextDraw on each render for each camera , (I
> typically only have 1) loading my scene.
>

CompileOnNextDraw is a feature that is meant to be used sparingly such as
on start up when you are first pre compiling all new GL objects to prevent
incremental compiles from breaking frame later in the app run.

First thing you should do is remove that call and see what happens.

Do you have an idea why this line was added?

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20191204/baab7aac/attachment.html>


More information about the osg-users mailing list