From 25f4baf9904a34bb60d4c45e6dd911c2d488a1a0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 15 Dec 2008 13:56:38 +0000 Subject: [PATCH] Made the folowing changes to make the DatabasePager more restrained in its memory consumption, and to improve the speed of merging of tiles (at the potential cost of extra frame drops). Set Made DatabasePager TargetMaximumNumberOfPageLOD technique the be the default with a default target number of PagedLOD of 500. Set DatabasePager DoPreCompile to OFF by default. --- src/osgDB/DatabasePager.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 9fd2bff4f..1243d18b8 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -914,7 +914,7 @@ DatabasePager::DatabasePager() } - _targetMaximumNumberOfPageLOD = 0; + _targetMaximumNumberOfPageLOD = 500; if( (ptr = getenv("OSG_MAX_PAGEDLOD")) != 0) { _targetMaximumNumberOfPageLOD = atoi(ptr); @@ -922,9 +922,7 @@ DatabasePager::DatabasePager() } - - - _doPreCompile = true; + _doPreCompile = false; if( (ptr = getenv("OSG_DO_PRE_COMPILE")) != 0) { _doPreCompile = strcmp(ptr,"yes")==0 || strcmp(ptr,"YES")==0 ||