+ 4
Why setInterval() laggs ??
I was firing a function every millisecond with setInterval(). But the function was not fired every milliseconds. It was getting lagged. Why is it so and what I can do if I want to fire setInterval() every millisecond without lagging ?
2 Antworten
+ 1
Maybe it could do with the function executed by setInterval? Btw this effect is more pronounced with smaller intervals.