Hello!
Implemented a 2D game and in Edge everything works smoothly and cool, but it hangs in Firefox, they said that you need to do it once or twice and everything was drawn, not in parts, to be honest, I was stumped about this. do here?
Having specified from the teacher, I learned that memory loads anonymous functions — I brought it into a separate variable without each new creation, but this did not really solve my question.
Thank.window.requestAnimationFrame-window.requestAnimationFrame, but whenctx.clearRectworks,ctx.clearRectdoesn’t remove trails, but whensetTimeoutis ok, what is the reason?thisis not important here, everything is taken from the circuit.
Thank you in advance.
