Adding some debugs for Thorsten Renk’s issue.
Will revert this patch in the future.
This commit is contained in:
parent
c6c63e65f7
commit
89115ccb1d
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue