Skip to content

Commit

Permalink
Merge pull request #6 from google/layers
Browse files Browse the repository at this point in the history
Change the assumption that there's always at least one ambient layer
  • Loading branch information
robcos authored Jan 9, 2024
2 parents 3632146 + c6a76d4 commit 8cbf77b
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ long computeAmbientMemoryFootprint(long screenWidth, long screenHeight) {
perConfigurationDynamicResources.computeMaximumResourceUsage(
visitor.optionResources);

// There's always at least one layer, even if all the Part* nodes are hidden.
if (visitor.numLayers == 0) {
visitor.numLayers = 1;
}

// In V1 we support a maximum of 2 layers and 2 clocks.
if (evaluationSettings.applyV1OffloadLimitations()) {
visitor.numLayers = min(visitor.numLayers, 2);
Expand Down

0 comments on commit 8cbf77b

Please sign in to comment.