Data URI leak in Safari (was: Memory Leak with HTML5 canvas)

前端 未结 4 2049
盖世英雄少女心
盖世英雄少女心 2020-12-08 16:11

I have created a webpage that receives base64 encoded bitmaps over a Websocket and then draws them to a canvas. It works perfectly. Except, the browser\'s (whether Firefox

4条回答
  •  抹茶落季
    2020-12-08 16:40

    you're probably drawing the image a lot more times than you are expecting to. try adding a counter and output the number to an alert or to a div in the page to see how many times the image is being drawn.

提交回复
热议问题