shatindle / rsplatoon-minigame

A mini-game to honor Splatoon 1's squid jump game
MIT License
0 stars 0 forks source link

Fix frame rate #12

Open shatindle opened 3 years ago

shatindle commented 3 years ago

On ultra wide screens, the frame rate seems to drop, resulting in a slower game.

shatindle commented 3 years ago

Suggested for controlling the frame rate: https://riptutorial.com/html5-canvas/example/18718/set-frame-rate-using-requestanimationframe

shatindle commented 3 years ago

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.

shatindle commented 3 years ago

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.

shatindle commented 3 years ago

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.