Garrett Johnson 5 роки тому
батько
коміт
88c928cc9d
2 змінених файлів з 4 додано та 6 видалено
  1. 2 2
      src/base/TilesRendererBase.js
  2. 2 4
      src/base/traverseFunctions.js

+ 2 - 2
src/base/TilesRendererBase.js

@@ -41,7 +41,7 @@ export class TilesRendererBase {
 		this.fetchOptions = {};
 		this.fetchOptions = {};
 
 
 		this.lruCache = new LRUCache();
 		this.lruCache = new LRUCache();
-		this.downloadQueue = new PriorityQueue( 6 );
+		this.downloadQueue = new PriorityQueue( 4 );
 		this.parseQueue = new PriorityQueue( 1 );
 		this.parseQueue = new PriorityQueue( 1 );
 		this.stats = {
 		this.stats = {
 			parsing: 0,
 			parsing: 0,
@@ -55,7 +55,7 @@ export class TilesRendererBase {
 
 
 		// options
 		// options
 		this.errorTarget = 6.0;
 		this.errorTarget = 6.0;
-		this.errorThreshold = 6.0;
+		this.errorThreshold = Infinity;
 		this.loadSiblings = true;
 		this.loadSiblings = true;
 		this.maxDepth = Infinity;
 		this.maxDepth = Infinity;
 
 

+ 2 - 4
src/base/traverseFunctions.js

@@ -235,7 +235,7 @@ export function skipTraversal( tile, renderer ) {
 
 
 	}
 	}
 
 
-	const errorRequirement = renderer.errorTarget * renderer.errorThreshold;
+	const errorRequirement = ( renderer.errorTarget + 1 ) * renderer.errorThreshold;
 	const meetsSSE = tile.__error <= errorRequirement;
 	const meetsSSE = tile.__error <= errorRequirement;
 	const hasContent = ! tile.__contentEmpty;
 	const hasContent = ! tile.__contentEmpty;
 	const loadedContent = tile.__loadingState === LOADED && ! tile.__contentEmpty;
 	const loadedContent = tile.__loadingState === LOADED && ! tile.__contentEmpty;
@@ -322,10 +322,8 @@ export function toggleTiles( tile, renderer ) {
 		if ( isUsed ) {
 		if ( isUsed ) {
 
 
 			// enable visibility if active due to shadows
 			// enable visibility if active due to shadows
-			// TODO: This seems like it should be the resposibility of the implementing class to mark active
-			// tiles as visible if desired.
 			setActive = tile.__active;
 			setActive = tile.__active;
-			setVisible = tile.__active || tile.__visible;
+			setVisible = tile.__visible;
 
 
 		}
 		}