[osg-users] FrameStamp in osg::State

Jannik Heller scrawl at baseoftrash.de
Wed Feb 1 12:33:30 PST 2017


Hi,

I'm trying to use the frame number of the FrameStamp in osg::State for a double buffering implementation in my custom drawImplementation() method.

However, the frameStamp in osg::State is just a pointer so when the frame advances, it will be increased. The problem is that in DrawThreadPerContext mode, osg can advance the frame before the draw has completed, so the frame number seen in drawImplementation() could be one frame ahead in some cases.

Any idea what to do? Do you think OSG should be changed to produce an accurate frame number for osg::State?

Thank you!

Cheers,
Jannik

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70086#70086








More information about the osg-users mailing list