Skip to content

Commit

Permalink
Integrate deletion rework
Browse files Browse the repository at this point in the history
  • Loading branch information
azrogers committed Oct 4, 2024
1 parent 0a14600 commit 90ea7e4
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Source/CesiumRuntime/Private/Cesium3DTileset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2047,18 +2047,15 @@ void ACesium3DTileset::updateLastViewUpdateResultState(
if (this->LogAssetStats && this->_pTileset) {
const CesiumGltf::SharedAssetDepot<CesiumGltf::ImageCesium>& imageDepot =
this->_pTileset->getSharedAssetSystem().image();
float averageAge;
size_t deletionCount;
imageDepot.getDeletionStats(averageAge, deletionCount);
UE_LOG(
LogCesium,
Display,
TEXT(
"Images depot: %d distinct assets, %d total usages, %d assets pending deletion, %f average age"),
"Images depot: %d distinct assets, %d total usages, %d assets pending deletion, %d total size in bytes"),
imageDepot.getDistinctCount(),
imageDepot.getUsageCount(),
deletionCount,
averageAge);
imageDepot.getDeletionCandidateCount(),
imageDepot.getDeletionCandidateTotalSizeBytes());
}
}
}
Expand Down Expand Up @@ -2233,10 +2230,6 @@ void ACesium3DTileset::Tick(float DeltaTime) {
}

this->UpdateLoadStatus();

if (this->_pTileset) {
this->_pTileset->getSharedAssetSystem().deletionTick();
}
}

void ACesium3DTileset::EndPlay(const EEndPlayReason::Type EndPlayReason) {
Expand Down

0 comments on commit 90ea7e4

Please sign in to comment.