Skip to content

Commit

Permalink
fix vsync
Browse files Browse the repository at this point in the history
Signed-off-by: FurryR <[email protected]>
  • Loading branch information
FurryR committed Oct 27, 2024
1 parent e8003be commit 0fd961b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/engine/tw-frame-loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class FrameLoop {
this.runtime.screenRefreshTime = renderTime - this._lastRenderTime; // Screen refresh time (from rate)
this._lastRenderTime = renderTime;
} else if (
this.framerate === 0 ||
renderTime - this._lastRenderTime >=
this.runtime.currentStepTime
) {
Expand Down

0 comments on commit 0fd961b

Please sign in to comment.