I am writing a multiplay browser based game and am running into an issue with playtesting simple interactions. When a browser window loses focus is stops running requestAnimationFrame calls. This effectively pauses the state all visuals when focus is lost.
I would like to have two instances of the game running at the same time. I could playtest in one window and observe how a thirdparty would see those actions in another window.
Right now I am only able to toggle between the two windows and see teleportation like behavior as the client state catches up to the new server state.
I am not sure how, without setting up a second computer, I might test this. Anyone have any experience with this or any advice?
setTimeout
instead ofrequestAnimationFrame
? \$\endgroup\$