ENGINE: Use setTimeout() instead of requestAnimationFrame() (#421)

This commit is contained in:
David Walker 2023-03-12 15:31:58 -07:00 committed by GitHub
parent f2e1a67ec1
commit 02a436dc79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -407,7 +407,7 @@ const Engine: {
Player.lastUpdate = _thisUpdate - offset; Player.lastUpdate = _thisUpdate - offset;
Engine.updateGame(diff); Engine.updateGame(diff);
} }
window.requestAnimationFrame(Engine.start); window.setTimeout(Engine.start, CONSTANTS.MilliPerCycle - offset);
}, },
}; };