Browse Source

update priority queue

Garrett Johnson 5 years ago
parent
commit
32cd7bc6aa

+ 2 - 2
example/bundle/example.e31bb0bc.js

@@ -1148,7 +1148,7 @@ class TilesRendererBase {
     }
   }
 
-  constructor(url, cache = new _LRUCache.LRUCache(), downloadQueue = new _PriorityQueue.PriorityQueue(6), parseQueue = new _PriorityQueue.PriorityQueue(2)) {
+  constructor(url, cache = new _LRUCache.LRUCache(), downloadQueue = new _PriorityQueue.PriorityQueue(6), parseQueue = new _PriorityQueue.PriorityQueue(1)) {
     // state
     this.tileSets = {};
     this.rootSet = url;
@@ -42966,7 +42966,7 @@ var parent = module.bundle.parent;
 if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
   var hostname = "" || location.hostname;
   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
-  var ws = new WebSocket(protocol + '://' + hostname + ':' + "54033" + '/');
+  var ws = new WebSocket(protocol + '://' + hostname + ':' + "57728" + '/');
 
   ws.onmessage = function (event) {
     checkedAssets = {};

File diff suppressed because it is too large
+ 1 - 1
example/bundle/example.e31bb0bc.js.map


+ 1 - 1
example/bundle/index.js

@@ -212,7 +212,7 @@ var parent = module.bundle.parent;
 if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
   var hostname = "" || location.hostname;
   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
-  var ws = new WebSocket(protocol + '://' + hostname + ':' + "54033" + '/');
+  var ws = new WebSocket(protocol + '://' + hostname + ':' + "57728" + '/');
 
   ws.onmessage = function (event) {
     checkedAssets = {};

+ 1 - 1
src/base/TilesRendererBase.js

@@ -28,7 +28,7 @@ export class TilesRendererBase {
 
 	}
 
-	constructor( url, cache = new LRUCache(), downloadQueue = new PriorityQueue( 6 ), parseQueue = new PriorityQueue( 2 ) ) {
+	constructor( url, cache = new LRUCache(), downloadQueue = new PriorityQueue( 6 ), parseQueue = new PriorityQueue( 1 ) ) {
 
 		// state
 		this.tileSets = {};

+ 1 - 2
src/three/TilesRenderer.js

@@ -11,8 +11,7 @@ import {
 	Math as MathUtils,
 	Box3Helper,
 	Quaternion,
-	Frustum,
-	Ray
+	Frustum
 } from 'three';
 import { raycastTraverse, raycastTraverseFirstHit } from './raycastTraverse.js';