Is Canvas Scaling More Performant Via Css Or Js?
The following document mentions some guidelines for performant scaling of HTML5 Canvas: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Optimizing_canvas#Scali
Solution 1:
Assuming you're not doing anything crazy, just set it to be the size you need. The performance difference will be negligible.
Post a Comment for "Is Canvas Scaling More Performant Via Css Or Js?"