Skip to content

Commit

Permalink
result -> pResult
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Oct 16, 2023
1 parent 018cd00 commit 962d4b2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Source/CesiumRuntime/Private/Cesium3DTileset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2077,25 +2077,25 @@ void ACesium3DTileset::Tick(float DeltaTime) {
CreateViewStateFromViewParameters(camera, unrealWorldToCesiumTileset));
}

const Cesium3DTilesSelection::ViewUpdateResult* result;
const Cesium3DTilesSelection::ViewUpdateResult* pResult;
if (this->_captureMovieMode) {
TRACE_CPUPROFILER_EVENT_SCOPE(Cesium::updateViewOffline)
result = &this->_pTileset->updateViewOffline(frustums);
pResult = &this->_pTileset->updateViewOffline(frustums);
} else {
TRACE_CPUPROFILER_EVENT_SCOPE(Cesium::updateView)
result = &this->_pTileset->updateView(frustums, DeltaTime);
pResult = &this->_pTileset->updateView(frustums, DeltaTime);
}
updateLastViewUpdateResultState(*result);
updateLastViewUpdateResultState(*pResult);

removeCollisionForTiles(result->tilesFadingOut);
removeCollisionForTiles(pResult->tilesFadingOut);

removeVisibleTilesFromList(
_tilesToHideNextFrame,
result->tilesToRenderThisFrame);
pResult->tilesToRenderThisFrame);
hideTiles(_tilesToHideNextFrame);

_tilesToHideNextFrame.clear();
for (Cesium3DTilesSelection::Tile* pTile : result->tilesFadingOut) {
for (Cesium3DTilesSelection::Tile* pTile : pResult->tilesFadingOut) {
Cesium3DTilesSelection::TileRenderContent* pRenderContent =
pTile->getContent().getRenderContent();
if (!this->UseLodTransitions ||
Expand All @@ -2105,16 +2105,17 @@ void ACesium3DTileset::Tick(float DeltaTime) {
}
}

showTilesToRender(result->tilesToRenderThisFrame);
showTilesToRender(pResult->tilesToRenderThisFrame);

if (this->UseLodTransitions) {
TRACE_CPUPROFILER_EVENT_SCOPE(Cesium::UpdateTileFades)

for (Cesium3DTilesSelection::Tile* pTile : result->tilesToRenderThisFrame) {
for (Cesium3DTilesSelection::Tile* pTile :
pResult->tilesToRenderThisFrame) {
updateTileFade(pTile, true);
}

for (Cesium3DTilesSelection::Tile* pTile : result->tilesFadingOut) {
for (Cesium3DTilesSelection::Tile* pTile : pResult->tilesFadingOut) {
updateTileFade(pTile, false);
}
}
Expand Down

0 comments on commit 962d4b2

Please sign in to comment.