Skip to content

Commit

Permalink
changes following review
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmas committed Jan 9, 2024
1 parent d45e155 commit 8195ed9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/viewer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Viewer {
targetZoom = 5;
minZoomLevel = 1;
maxZoomLevel = 10;
frameCount = 0;
raycastFrameInterval = 16;
private frameCount = 0;
private raycastFrameInterval = 16;

constructor (config?: Record<string, any>) {
this.config = { ...this.config, ...config };
Expand Down Expand Up @@ -332,6 +332,10 @@ class Viewer {
}

this.frameCount++;

if (this.frameCount >= this.raycastFrameInterval) {
this.frameCount = 0;
}
}

getSatelliteStore () {
Expand Down

0 comments on commit 8195ed9

Please sign in to comment.