From: Stuart Buchanan Date: Fri, 8 Apr 2016 21:38:17 +0000 (+0100) Subject: Make LOD of buildings/trees/objects/STG configurable. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=56374621c5fbeeae2c21a0571c2889138fb8e10c;p=flightgear.git Make LOD of buildings/trees/objects/STG configurable. Now using /sim/rendering/static-lod/rough. --- diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 9c1327b82..99a7cf915 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -28,6 +28,8 @@ #include #include +#include + #include #include @@ -174,7 +176,8 @@ void FGTileMgr::reinit() if (!_disableNasalHooks->getBoolValue()) _options->setModelData(new FGNasalModelDataProxy); - + + _options->setPluginStringData("SimGear::ROUGH_LOD_RANGE", fgGetString("/sim/rendering/static-lod/rough", boost::lexical_cast(SG_OBJECT_RANGE))); if (state != Start) { @@ -480,7 +483,7 @@ void FGTileMgr::schedule_tiles_at(const SGGeod& location, double range_m) // We've moved to a new bucket, we need to schedule any // needed tiles for loading. SG_LOG( SG_TERRAIN, SG_INFO, "FGTileMgr: at " << location << ", scheduling needed for:" << current_bucket - << ", visbility=" << range_m); + << ", visibility=" << range_m); scheduled_visibility = range_m; schedule_needed(current_bucket, range_m); }