I am building a game and i do the animations with requestanimationframe and when i run it locally on localhost everything goes smoothly and runs in the speed i want, but when i publish the game on github pages everything goes super slow. And I dont get any warning that the requestanimationframe took n secs to complete. Is it the speed of the server that the site is hosted on or should i check something else ?
The only thing i tried so far is increase the game speed but i didnt notice any changes in the final product
after some research i found out that the reason that it was slowing down was the frames, i did a performance log and found that i was getting partially prevented frame in some frames cause my screen was faster than 60fps, the way to fix that is to controll your frames in your requestanimationframe loop