Im using a canvas that has the browser´s window height and width and I´m using about 20% of the canvas for drawing (this includes doing clearRect to the same 20%).
Does my unused canvas space affect performance?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
short answer: YES
the bigger the canvas, the worse the performance – but then again it seems like you have noticed that already and are merely asking for a “good boy”… excuse my sarcasm.
you can save cpu time by changing the internal drawing size below the actual size if the result does not need to look perfectly sharp. besides that – dont use a bigger canvas than actually required.