[osg-users] FrameStamp in osg::State

Robert Osfield robert.osfield at gmail.com
Thu Feb 2 03:14:13 PST 2017


HI Jannik,

Which version of the OSG are you using?

In 3.4.0 one frame stamp was used in Renderer.cpp, but in the 3.4
branch and master I've changed it so the double buffered rendering
backends which handle the DrawThreadPerContext case use a FrameStamp
each.

Robert.

On 1 February 2017 at 20:33, Jannik Heller <scrawl at baseoftrash.de> wrote:
> 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
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list