B
B
buryakov_dima2015-12-12 08:46:41
JavaScript
buryakov_dima, 2015-12-12 08:46:41

Why does JavaScript (Canvas) freeze in FireFox?

Hello, I'm making a game in JavaScript, the game is simple - there is a boat, there are opponents, and all this moves towards each other with the help of setInterval () increment and decrement of coordinates. I encountered such a problem in Chrome, Yandex Browser browsers, everything works fine without lags and other things, but in FireFox it freezes terribly! Why is that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivanq, 2015-12-12
@Ivanq

IgRibgxl.jpg

N
Nicholas, 2015-12-12
@ACCNCC

Use requestAnimationFrame
and you might be leaking!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question