-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Slightly delay rendering during scrolling in the viewer (bug 1854145) #17402
base: master
Are you sure you want to change the base?
Slightly delay rendering during scrolling in the viewer (bug 1854145) #17402
Conversation
fc0f6bd
to
6304d15
Compare
Interesting, I worked on the same issue but with a totally different approach. |
Oh, how did you implement that (at a high level)? (I've been thinking about this issue for a while, and have had problems coming up with a generally good solution that improves handling of huge documents without regressing performance for "normal" document and also doesn't break some edge-case.)
I mostly tested mouse-scrolling locally, and it unfortunately seems that this patch doesn't handle keyboard-scrolling as well (since there's a larger "delay" between the |
Tell me what do you think about: |
While something along those lines is likely (a lot) better, it does seem significantly more complex and risky though (i.e. it'd take some time to review.) |
Yes, we could start to
The I wrote this patch almost to have a POC (based on an idea given by the bug reporter in 1866296). |
That's all starting to sound even more complicated unfortunately...
Huh, that sounds strange (and I'm not sure that I fully understand what you're describing).
The new Thinking about all of this a bit more, I'm not sure that simply "ignoring" some
I don't know about "better", I've just been around the project a bit longer and thus remembers how difficult accounting for various edge-cases can be in parts of the code-base. |
6304d15
to
abde17d
Compare
This patch tries to improve a use-case that's always performed somewhat poorly in the default viewer, i.e. scrolling quickly through long and complex PDF documents. For an initial implementation I've purposely tried to make these new delays as small as possible, while still improving cases such as e.g. bug 1854145, to hopefully avoid regressing perceived performance for all PDF documents in the default viewer. *Please refer to the inline code-comments for additional details.*
abde17d
to
7c7e645
Compare
For this PR I've tried playing with the constants a little bit and it now seems to work OK with both mouse- and keyboard-scrolling at least in my tests. (And it should be pretty much risk free, since we'll just defer /botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/1bbdb409afedeeb/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/1bbdb409afedeeb/output.txt Total script time: 1.44 mins Published |
This patch tries to improve a use-case that's always performed somewhat poorly in the default viewer, i.e. scrolling quickly through long and complex PDF documents.
For an initial implementation I've purposely tried to make these new delays as small as possible, while still improving cases such as e.g. bug 1854145, to hopefully avoid regressing perceived performance for all PDF documents in the default viewer.
Please refer to the inline code-comments for additional details.