Show max FPS value in Stats bar

This commit is contained in:
redphx
2024-10-14 21:06:52 +07:00
parent e5bd7e64a7
commit b969d52a3c
2 changed files with 5 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ export class WebGL2Player {
};
private targetFps = 60;
private frameInterval = Math.ceil(1000 / this.targetFps);
private frameInterval = 0;
private lastFrameTime = 0;
private animFrameId: number | null = null;