3 ms·
There is a "best practices" way to do canvas drawing which involves requestAnimationFrame inside a draw loop function, but there is no way to put UI events and
by bob1029 5y ago
There is a "best practices" way to do canvas drawing which involves requestAnimationFrame inside a draw loop function, but there is no way to put UI events and drawing on different logical threads. The best you can do is make sure your draw function does not do non-drawing things.