When drawing lines with ctx. linewidth greater than 1, the performance of js canvas is very poor. For example, if there are 5000 points and ctx. linewidth=1, the performance is good. If it is greater than 1, it will be particularly sluggish. How to optimize the process to avoid lag? Is there any other drawing method.
New contributor
cqc c is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1