Open shatindle opened 3 years ago
Suggested for controlling the frame rate: https://riptutorial.com/html5-canvas/example/18718/set-frame-rate-using-requestanimationframe
Fixed frame rate issue. Computers with anti-virus that slows rendering time and large screens not backed by a graphics card now play the game at the correct speed.
This is still an issue on ultra-wides. Had to revert the change because it resulted in less consistent performance for everything but ultra-wide machines.
Turns out the issue happens when the display controller of the computer isn't capable of handling ~60fps. I've seen this usually happen on dock-connected machines.
On ultra wide screens, the frame rate seems to drop, resulting in a slower game.