From: James Turner Date: Wed, 19 Nov 2014 22:35:35 +0000 (+0000) Subject: Adding some debugs for Thorsten Renk’s issue. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=89115ccb1d7889f7d3bd0381e4404250abdec4a3;p=flightgear.git Adding some debugs for Thorsten Renk’s issue. Will revert this patch in the future. --- diff --git a/src/Scenery/scenery.cxx b/src/Scenery/scenery.cxx index 73d0b7f46..6b4edc0e8 100644 --- a/src/Scenery/scenery.cxx +++ b/src/Scenery/scenery.cxx @@ -437,9 +437,13 @@ bool FGScenery::scenery_available(const SGGeod& position, double range_m) // while the splashscreen is there, so CheckSceneryVisitor force-loads // missing objects in the main thread get_scene_graph()->accept(csnv); - if(!csnv.isLoaded()) + if(!csnv.isLoaded()) { + SG_LOG(SG_TERRAIN, SG_DEBUG, "FGScenery::scenery_available: waiting on CheckSceneryVisitor"); return false; + } return true; + } else { + SG_LOG(SG_TERRAIN, SG_DEBUG, "FGScenery::scenery_available: waiting on tile manager"); } return false; } diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index b5cfa3c6f..ab7e30ec5 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -501,8 +501,10 @@ bool FGTileMgr::schedule_scenery(const SGGeod& position, double range_m, double SGBucket bucket(position); available = sched_tile( bucket, priority, false, duration ); - if ((!available)&&(duration==0.0)) + if ((!available)&&(duration==0.0)) { + SG_LOG( SG_TERRAIN, SG_DEBUG, "schedule_scenery: Scheduling tile at bucket:" << bucket << " return false" ); return false; + } SGVec3d cartPos = SGVec3d::fromGeod(position);