how to force a display update in canvas

后端 未结 2 1565
既然无缘
既然无缘 2020-12-06 16:59

if I draw to the canvas a lot in quick succession, e.g. a context.fillRect in a loop, browsers seem to wait until the loop has finished before any of the drawing is displaye

2条回答
  •  半阙折子戏
    2020-12-06 17:10

    In 2019, you can track it with Chrome Dev Tools, https://www.html5rocks.com/en/tutorials/canvas/inspection/

提交回复
热议问题