Hi Rémi and Robert,

this is a problem I was seeing for a long time. Registering any update 
callback anywhere in the scene changes ON_DEMAND behaviour to similar like 
CONTINUOUS_UPDATE.

Just two notes before Robert's comments on the way how to fix the problem:
- Robert usually wants full source file (although you changed just one line of 
code).
- you did not included cameraUpdate callback in your fix. It is just one line 
above your changes. (Registering update callback on camera would cancel the 
effect of ON_DEMAND behaviour.)

John

On Monday 27 of January 2014 13:43:15 Rémi Thebault wrote:
> Hi Robert
> 
> Experiencing around OSG, I found out that the update callback gets called
> continously even when the Viewer's FrameScheme is ON_DEMAND.
> 
> In case that this behaviour is not the expected one, I propose here a (very)
> simple fix that tests _runFrameScheme in Viewer::checkNeedToDoFrame() (and
> same for CompositeViewer)
> 
> If relevant, I'm using a single threaded OSG scene within a Qt5 application.
> I can't tell if this would break existing code.
> Please let me know what you think !
> 
> Cheers,
> Rémi
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to