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 <[email protected]> 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
> [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