Added a local implementation of SlideEventHandler::checkNeedToDoFrame() so that Present3D can toggle on/off the need for continuous rendering to only slides that require it,
enabling slides with no animation to sit iddle rather keeping rendering, reducing CPU/GPU overhead and saving power.
This commit is contained in:
@@ -865,7 +865,7 @@ int main( int argc, char **argv )
|
||||
{
|
||||
osg::Timer_t startFrameTick = osg::Timer::instance()->tick();
|
||||
|
||||
if (viewer.getRunFrameScheme()!=osgViewer::ViewerBase::ON_DEMAND || viewer.checkNeedToDoFrame())
|
||||
if (viewer.getRunFrameScheme()!=osgViewer::ViewerBase::ON_DEMAND || seh->checkNeedToDoFrame())
|
||||
{
|
||||
// do the normal frame.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user