From 05e9f90d2cf815e77646731ef508313f4503efc3 Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Thu, 31 Oct 2024 19:42:53 +0900 Subject: [PATCH] Don't trickle in root tiles (#837) --- src/base/traverseFunctions.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/base/traverseFunctions.js b/src/base/traverseFunctions.js index 95b778ccf..32654f4db 100644 --- a/src/base/traverseFunctions.js +++ b/src/base/traverseFunctions.js @@ -336,14 +336,13 @@ export function markVisibleTiles( tile, renderer ) { const meetsSSE = tile.__error <= errorRequirement; const childrenWereVisible = tile.__childrenWereVisible; - // we don't wait for all children tiles to load if this tile set has empty tiles at the root - const emptyRootTile = tile.__depthFromRenderedParent === 0; - const allChildrenLoaded = tile.__allChildrenLoaded || emptyRootTile; - - // TODO: decide if we should behave differently at root tiles - // const allChildrenLoaded = tile.__allChildrenLoaded; + // NOTE: We can "trickle" root tiles in by enabling these lines. + // Don't wait for all children tiles to load if this tile set has empty tiles at the root + // const emptyRootTile = tile.__depthFromRenderedParent === 0; + // const allChildrenLoaded = tile.__allChildrenLoaded || emptyRootTile; // If we've met the SSE requirements and we can load content then fire a fetch. + const allChildrenLoaded = tile.__allChildrenLoaded; const includeTile = meetsSSE || tile.refine === 'ADD'; if ( includeTile && ! loadedContent && ! lruCache.isFull() && hasContent ) {