JSJitsu / ai-battle-website

Run and replay game battles.
https://jsfight.club
12 stars 18 forks source link

Adds varying levels of battle speed #101

Closed redice44 closed 6 years ago

redice44 commented 6 years ago

I opted to add speeds up to 16x. When testing the speeds 4x still felt slow. 8x was better, but only at 16x did it feel fast.

My main concern at 16x is it's firing every 25ms, which can stress performance on some machines.

Issue: #97

flesler commented 6 years ago

You could switch the setInterval for a setTimeout and just alter the property that holds the delay/interval. Might be simpler