For eg, my demos at Slottie or SantaBox
First loading works ok, speed is as expected. Then I access the url again (not reload) the speed will double or more, unless I hit reload then it is normal/expected again. This is on firefox. Doesn’t have such issue on chrome.
tldr, on firefox the game step/deltatime is possibly not returning proper values unless you reload url (not retype but reload)
Never mind, finally solved it. I called this.engine.runRenderLoop while it’s already running, therefore causing the speed to run twice, because it added a loop/callback the 2nd time.
All i need to do for the ‘resume’ part of my function is to always call this.engine.stopRenderLoop() before I call this.engine.runRenderLoop again.