-
Hi devs, I recently noticed that newer versions of Firefox (macOS) enable hardware acceleration of HTML Canvas by default. Consequently, PDF.js rendered canvases are GPU accelerated. Is there any performance benefit to this in the rendering pipeline of a typical PDF? More importantly, is there any significant drawbacks to disabling the canvas HW acceleration? As I understand it, HW acceleration is indispensable only to resource-intensive graphics applications. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
There are pros and cons, we are evaluating if it makes sense to keep HW acceleration enabled or disable it for PDF.js. |
Beta Was this translation helpful? Give feedback.
-
Example case where it is bad: https://bugzilla.mozilla.org/show_bug.cgi?id=1895499. |
Beta Was this translation helpful? Give feedback.
-
@marco-c I don't know if it's the same as the example case, but even for the demo PDF (
|
Beta Was this translation helpful? Give feedback.
There are pros and cons, we are evaluating if it makes sense to keep HW acceleration enabled or disable it for PDF.js.