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.
This commit is contained in:
Robert Osfield
2008-12-15 13:56:38 +00:00
parent 7d719d998e
commit 25f4baf990

View File

@@ -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 ||