Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Oct 4, 2024
1 parent ab3fa18 commit c6ec302
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions example/src/plugins/UpdateOnChangePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ export class UpdateOnChangePlugin {

};

// dispose tile is included here because the LRUCache can evict tiles that are actively used if they're
// above the byte cap causing tile gaps
tiles.addEventListener( 'dispose-model', this._needsUpdateCallback );
tiles.addEventListener( 'camera-resolution-change', this._needsUpdateCallback );
tiles.addEventListener( 'load-content', this._needsUpdateCallback );
tiles.addEventListener( 'add-camera', this._onCameraAdd );
Expand Down Expand Up @@ -72,7 +69,6 @@ export class UpdateOnChangePlugin {
dispose() {

const tiles = this.tiles;
tiles.removeEventListener( 'dispose-model', this._needsUpdateCallback );
tiles.removeEventListener( 'camera-resolution-change', this._needsUpdateCallback );
tiles.removeEventListener( 'content-load', this._needsUpdateCallback );
tiles.removeEventListener( 'camera-add', this._onCameraAdd );
Expand Down
2 changes: 0 additions & 2 deletions src/three/renderers/GoogleTilesRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ const GooglePhotorealisticTilesRendererMixin = base => class extends EllipsoidTi
this.fetchOptions.mode = 'cors';
this.parseQueue.maxJobs = 10;
this.downloadQueue.maxJobs = 30;
this.lruCache.minSize = 3000;
this.lruCache.maxSize = 5000;
this.errorTarget = 40;

this.addEventListener( 'tile-visibility-change', e => {
Expand Down

0 comments on commit c6ec302

Please sign in to comment.