-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Add a pref in order to cap the canvas area to a factor of the window one (bug 1958015) #19755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
071c90a
to
81317d5
Compare
This limit really seems way too low to be practical/helpful, since I cannot even open e.g. the
Maybe it makes the initial rendering slightly faster, but it seems that you'd be losing at least whatever time was saved (if not more) by now having significantly more re-rendering on scrolling. |
What if we make the value dynamic based on the same factors we use for the auto-zoom level? If the text is very small, it's very likely the user will zoom and scroll, and so we might want to pre-render more. |
Another idea: we could render with a smaller canvas, but pre-render more area around it (or even simply a larger canvas) while on idle. |
Given that the bug now links to a GeckoView-specific bug, I'd be more OK with the general idea of this patch if we use pre-processor statements to limit this functionality to the GV-viewer (in Also, is this intended as a temporary solution until issue #6419 is fully fixed? |
We were thinking of three things:
|
81317d5
to
4d32b10
Compare
It isn't only improving speed for GV but for Desktop too when the pdf is large. |
4d32b10
to
58b4405
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the pixel-limits now also depend on the window size, what happens if the viewer is resized such that it becomes bigger: will re-rendering be triggered in that case (since I believe that it should)?
58b4405
to
3e0ad5e
Compare
For information, I profiled wuppertal_2012.pdf at 300% on desktop with a local dev server (Windows 11) and with a local build of Fenix on a real pixel 7 phone.
|
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/22654cc9d9f2c5c/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 1 Live output at: http://54.193.163.58:8877/9b2deb50b26653a/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/22654cc9d9f2c5c/output.txt Total script time: 29.78 mins
|
3e0ad5e
to
9d9395e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a small typo in the commit message: areato
-> area to
.
r=me, with a couple more comments; thank you.
…one (bug 1958015) This way it helps to reduce the overall canvas dimensions and make the rendering faster. The drawback is that when scrolling, the page can be blurry in waiting for the rendering. The default value is 200% on desktop and will be 100% for GeckoView.
9d9395e
to
1225c1e
Compare
/botio integrationtest |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 2 Live output at: http://54.193.163.58:8877/7795ea9dcec4b7b/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/4868b2ac35c344f/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/4868b2ac35c344f/output.txt Total script time: 12.49 mins
|
This way it helps to reduce the overall canvas dimensions and make the rendering faster. The drawback is that when scrolling, the page can be blurry in waiting for the rendering.
The default value is 200% on desktop and will be 100% for GeckoView.