Ignore:
Timestamp:
Sep 4, 2014 11:18:26 AM (7 years ago)
Author:
ldelgass
Message:

add token to map/screen coord commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/Renderer.h

    r4628 r4629  
    2020#include <osgViewer/Viewer>
    2121#include <osgGA/StateSetManipulator>
     22#include <osgUtil/IncrementalCompileOperation>
    2223
    2324#include <osgEarth/StringUtils>
     
    365366            rate = 0.25;
    366367        _minFrameTime = 1.0/rate;
     368        if (_viewer.valid()) {
     369            osgUtil::IncrementalCompileOperation *op =
     370                _viewer->getDatabasePager()->getIncrementalCompileOperation();
     371            if (op != NULL) {
     372                TRACE("Setting DB Pager target frame rate to %g", rate);
     373                op->setTargetFrameRate(rate);
     374            }
     375        }
    367376    }
    368377
Note: See TracChangeset for help on using the changeset viewer.