1
0
Fork 0

Adding some debugs for Thorsten Renk’s issue.

Will revert this patch in the future.
This commit is contained in:
James Turner 2014-11-19 22:35:35 +00:00
parent c6c63e65f7
commit 89115ccb1d
2 changed files with 8 additions and 2 deletions

View file

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

View file

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