This commit is contained in:
awesomeuser 2023-07-08 21:15:23 +00:00
parent ee4348edae
commit 763e8d35f6

View file

@ -99,9 +99,9 @@
let dt = (timestamp - prevTime) / 1000; let dt = (timestamp - prevTime) / 1000;
prevTime = timestamp; prevTime = timestamp;
if (dt < 50) { // fps limiter (20fps) if (dt < 0.025) { // fps limiter (40fps)
await new Promise(r => setTimeout(r, 50 - dt)); await new Promise(r => setTimeout(r, 0.025 - dt));
dt = 50; dt = 0.025;
} }
// petting shake // petting shake