Skip to content

Commit

Permalink
Trigger _image360ApiHelper.ResetRedraw (#3463)
Browse files Browse the repository at this point in the history
This should avoid rendering every frame, which causes both performance
and battery problems after 360 images have been used.
  • Loading branch information
Strepto authored Jul 5, 2023
1 parent ae7afcf commit 1df6af2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,7 @@ export class Cognite3DViewer {

this.revealManager.render(camera);
this.revealManager.resetRedraw();
this._image360ApiHelper?.resetRedraw();
this._clippingNeedsUpdate = false;
const renderTime = Date.now() - start;

Expand Down

0 comments on commit 1df6af2

Please sign in to comment.