kalemmentore868 / bloqsquare-react

0 stars 1 forks source link

Too many setInterval #26

Closed karneaud closed 1 year ago

karneaud commented 2 years ago

There are too many setIntervals and setTimeouts. This can slow down the game and make it glitchy. Use requestAnimationFrame function ( except for the machine random picks) and/ or event listeners that would listen for when some property or state changes.