From 8d560f5e7cdcc6c32ffad2bcceff6d8c2ee5c573 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 8 Feb 2024 20:36:45 +0700 Subject: [PATCH] Add TODO about Target FPS --- raylib.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/raylib.js b/raylib.js index 7e810e7..0518bd8 100644 --- a/raylib.js +++ b/raylib.js @@ -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); }