-
Notifications
You must be signed in to change notification settings - Fork 92
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
Pdf view very slow when multiple, unevenly split windows are displayed. #302
Comments
My guess is that If not turn on the profiler, use pdf-tools while it is lagging and post the profiles. |
@aikrahguzar Thanks, you are right in that turning off scaling fixes the problem. I don't have a high dpi screen so, I'll just go with this solution. Still, I'm a bit curious about what is happening here and I can't quite follow your argument. How is "half" an integer multiple of display dimension? Also, assuming the cached images are the problem, clearing them should make it go away right? However, when I delete the pdf image cache using 'pdf-cache-clear-data' (I'm hoping it does what the name implies) the problem persists. It sounds totally plausible that scaling the image is more expensive for certain windows dimensions than others, but I'm not sure about the mechanism. Btw here is a cpu profile I got in my almost-empty init file. I didn't find it very helpful. |
The actual image is the twice the size at which is it is displayed. The integer multiple is 2. If you clear the cache and then scroll (or otherwise go) to a new page, do you still get the lag on the new page? If the page remains the same no new image is requested.
Agreed, not very informative. |
Describe the bug
When pdf-view is open side by side with an other window in the same frame and the ratio of the widths is anything other than 1:1 I get around 0.4-0.8 sec lag in pdf view.
The latter point makes me think that some internal variable connected to the width of the window needs updating, but I couldn't figure out which one.
Steps to Reproduce the behaviour
Steps to reproduce the behaviour:
What is the expected behaviour?
The input lag does not depend on the window size.
Desktop
Your pdf-tools install
pdf-tools
Version: 20240429.407pdf-tools
customization / configuration that you use: None in my test init file.The text was updated successfully, but these errors were encountered: