Skip to content

Commit

Permalink
Add TODO about Target FPS
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Feb 8, 2024
1 parent e9d15d3 commit 8d560f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions raylib.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ class RaylibJs {
}

GetFrameTime() {
// TODO: This is a stopgap solution to prevent sudden jumps in dt when the user switches to a differen tab.
// We need a proper handling of Target FPS here.
return Math.min(this.dt, 1.0/this.targetFPS);
}

Expand Down

0 comments on commit 8d560f5

Please sign in to comment.