From ac5ffa2bec94cfc6790f8eecbf1a5422f548fbf7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 30 May 2005 16:15:11 +0000 Subject: [PATCH] Added support for reading: OSG_MINIMUM_COMPILE_TIME_PER_FRAME and OSG_MAXIMUM_OBJECTS_TO_COMPILE_PER_FRAME environmental variable during the initialization of the DatabasePager to allow apps to be tweaked for best database pager behavior. --- src/osgDB/DatabasePager.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 79b920b78..4c2b63081 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include @@ -19,6 +20,9 @@ using namespace osgDB; using namespace OpenThreads; +static osg::ApplicationUsageProxy DatabasePager_e0(osg::ApplicationUsage::ENVIRONMENTAL_VARIABLE,"OSG_MINIMUM_COMPILE_TIME_PER_FRAME ","minimum compile time alloted to compiling GL objects per frame in database pager."); +static osg::ApplicationUsageProxy DatabasePager_e1(osg::ApplicationUsage::ENVIRONMENTAL_VARIABLE,"OSG_MAXIMUM_OBJECTS_TO_COMPILE_PER_FRAME ","maximum number of GL objects to compile per frame in database pager."); + DatabasePager::DatabasePager() { //osg::notify(osg::INFO)<<"Constructing DatabasePager()"<getOrCreateSharedStateManager();