Skip to content

Commit

Permalink
oops, wrong deltaTime threshold, also do not limit timeScale
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaraush committed Sep 12, 2023
1 parent 6996082 commit c3c2fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const loop = () => {

stats.begin();
const now = window.performance.now()
const dt = Math.min((now - lastDrawTime) / 1_000 * GUI.timeScale, 1 / 100)
const dt = Math.min((now - lastDrawTime) / 1_000, 1) * GUI.timeScale
lastDrawTime = now

time += dt
Expand Down

0 comments on commit c3c2fa5

Please sign in to comment.