问题
I wrote some test cases on jsperf related to: 1. drawing on an offscreen canvas 2. drawImage to an onscreen canvas
I found that performance was much higher if the number of pixels in the source canvas (regardless of dst) was less than ~ 65776 pixels.
(I expected this performance limit to be 65536 pixels, if it was going to be anything)
Here are my test cases:
http://jsperf.com/pixel-count-matters/2http://jsperf.com/magic-canvas/2
I believe this person is asking a similar question: Why does FPS go down if canvas is larger than 255x220?
Thanks for your help!!!
来源:https://stackoverflow.com/questions/19038058/why-does-drawimage-performance-differ-greatly-with-larger-than-65776-pixel-canva