更新 'simgear/scene/tsync/terrasync.cxx'
This commit is contained in:
parent
11cfcfa8c5
commit
e3fde842b3
@ -986,6 +986,8 @@ void SGTerraSync::WorkerThread::drainWaitingTiles()
|
||||
<< " next._dir=" << next._dir
|
||||
<< " cacheStatus=" << cacheStatus
|
||||
);
|
||||
|
||||
/*
|
||||
if (cacheStatus != SyncItem::Invalid) {
|
||||
incrementCacheHits();
|
||||
SG_LOG(SG_TERRASYNC, SG_BULK, "TerraSync Cache hit for: '" << next._dir << "'");
|
||||
@ -997,6 +999,22 @@ void SGTerraSync::WorkerThread::drainWaitingTiles()
|
||||
const auto slot = syncSlotForType(next._type);
|
||||
SG_LOG(SG_TERRASYNC, SG_INFO, "adding to _syncSlots slot=" << slot);
|
||||
_syncSlots[slot].queue.push_back(next);
|
||||
*/
|
||||
|
||||
//zhongjin 11-14
|
||||
|
||||
if (cacheStatus == SyncItem::Invalid) {
|
||||
const auto slot = syncSlotForType(next._type);
|
||||
SG_LOG(SG_TERRASYNC, SG_INFO, "adding to _syncSlots slot=" << slot);
|
||||
_syncSlots[slot].queue.push_back(next);
|
||||
continue;
|
||||
}
|
||||
|
||||
incrementCacheHits();
|
||||
SG_LOG(SG_TERRASYNC, SG_BULK, "TerraSync Cache hit for: '" << next._dir << "'");
|
||||
next._status = cacheStatus;
|
||||
_freshTiles.push_back(next);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user