更新 'simgear/scene/tsync/terrasync.cxx'
This commit is contained in:
@@ -986,6 +986,8 @@ void SGTerraSync::WorkerThread::drainWaitingTiles()
|
|||||||
<< " next._dir=" << next._dir
|
<< " next._dir=" << next._dir
|
||||||
<< " cacheStatus=" << cacheStatus
|
<< " cacheStatus=" << cacheStatus
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/*
|
||||||
if (cacheStatus != SyncItem::Invalid) {
|
if (cacheStatus != SyncItem::Invalid) {
|
||||||
incrementCacheHits();
|
incrementCacheHits();
|
||||||
SG_LOG(SG_TERRASYNC, SG_BULK, "TerraSync Cache hit for: '" << next._dir << "'");
|
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);
|
const auto slot = syncSlotForType(next._type);
|
||||||
SG_LOG(SG_TERRASYNC, SG_INFO, "adding to _syncSlots slot=" << slot);
|
SG_LOG(SG_TERRASYNC, SG_INFO, "adding to _syncSlots slot=" << slot);
|
||||||
_syncSlots[slot].queue.push_back(next);
|
_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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user