Quantum-Game / quantum-game-2

LEGACY open-source version of Quantum Game 2 (Sept 2019 - Oct 2020)
https://quantumgame.io
MIT License
65 stars 16 forks source link

Frame flip rate increasing on additional Play buttons clicks #141

Closed JStrebeyko closed 4 years ago

JStrebeyko commented 4 years ago

Apparently, every additional click on Play button while the simulation is already running causes the "frame flip" rate to increase and seemingly does not get down by itself. It probably has to do with nested setIntervals.

stared commented 4 years ago

@Frizi It is still an issue among many other things with controlling state.

In general, with animation, we want a smooth transition of a moving photon.

Frizi commented 4 years ago

I wouldn't necessarily relate smooth animations to this bug. I'm in the process of refactoring the game page, which includes the fix for the play button behaviour. Indeed there are multiple setTimeouts being started.