I made an example which shows you should never use setTimout() or setInterval() in Phaser.
A while ago I figured out that you could use setTimeout instead of the built in Phaser timer to delay things. I decided to use it as at the time I saw no downside to it. I especially liked how simple it was compared to the Phaser Timer (I was learning at the time)
Well recently I made a rhythm game where timing matters a lot and I used setTimout().
I noticed that my game constantly jittered and stuttered. I could not figure out the solution to this until Phailser told me to use the Chrome profiler. I tried it and saw that setTimout was taking a lot of time. So, I decided to make an example to test my theory and it showed that setTimeout is really slow compared to the built in timer.
Many of you probably knew this, but I sure didn’t.