Zotero Reader rendering too slow
## Problem
The reader of Zotero seems to be rendering the PDF too slow. It always takes a few seconds to render the PDF after I try to scroll quickly for a large PDF file.
This is not a problem when I use other PDF readers like Adobe Acrobat Reader or PDFgear.
The video in [GitHub issue](https://github.com/zotero/zotero/issues/4809) shows the problem.
## Environment
- Zotero version: 7.0.9-beta.5
- Hardware: Mac mini M2
- Operating system: MacOS 15.1
The reader of Zotero seems to be rendering the PDF too slow. It always takes a few seconds to render the PDF after I try to scroll quickly for a large PDF file.
This is not a problem when I use other PDF readers like Adobe Acrobat Reader or PDFgear.
The video in [GitHub issue](https://github.com/zotero/zotero/issues/4809) shows the problem.
## Environment
- Zotero version: 7.0.9-beta.5
- Hardware: Mac mini M2
- Operating system: MacOS 15.1
1) Disable all third-party plugins.
2) Check if Settings → Advanced → Config Editor → layers.acceleration.disabled value is set false?
@mdugganmrcvs Could you send an example file to support@zotero.org with a link to this thread?
Also can you provide a Debug ID for it happening?
1) Is it a scanned document?
2) Is this the only PDF in your library that is slow?
3) Could it be that sync was running at the time?
No there are multiple PDFs which are behaving similarly some smaller some the same size
I checked to see if sync was running and sometimes it was and sometimes it wasn't
For this new video, I have disabled sync and plugins, and ensured layers.acceleration.disabled to be false. The lagging issue still exists.
The new video is available at: https://github.com/zotero/zotero/issues/4809#issuecomment-2464655983
The PDF file used in the video has been sent to support@zotero.org via email, which titled "[Zotero Forums] dstillman commented on Zotero Reader rendering too slow"
Do you experience lag in other parts of the UI, such as the library tab or notes?
Also please provide a Debug ID for it happening.
Yes, the scrolling is lagging heavily for the large PDF file. This issue is not such severe for the small PDF file, but still noticeable sometimes.
I don't experience lag in other parts of the UI. All other parts of the UI are working fine. Besides, I have tried to open the same large PDF file in the my Windows computer, and the scrolling is smooth. So I think this issue is related to the Zotero reader on the Mac.
I have enabled the debug logging and tried to scroll the large PDF file in the reader. And I found that Each time I scroll the PDF file, the debug logging will show the following lines. If I scroll the PDF file several times quickly, the debug logging will only add the following lines one time. But if I scroll the PDF file slowly, the debug logging will add the following lines each time I scroll the PDF file. This may be related to the reason for the lagging issue. Here are the lines added to the debug logging each time I scroll the PDF file:
===============================================
(3)(+0000378): Notifier.trigger('modify', 'setting', [1/lastPageIndex_u_VLLV85CA], {"1/lastPageIndex_u_VLLV85CA":{"changed":{"value":107}}}) called [observers: 8]
(4)(+0002259): UPDATE syncedSettings SET value=?, synced=? WHERE setting=? AND libraryID=? ['103', 0, 'lastPageIndex_u_VLLV85CA', 1]
(3)(+0000063): Notifier.trigger('modify', 'setting', [1/lastPageIndex_u_VLLV85CA], {"1/lastPageIndex_u_VLLV85CA":{"changed":{"value":105}}}) called [observers: 8]
(4)(+0001249): UPDATE syncedSettings SET value=?, synced=? WHERE setting=? AND libraryID=? ['102', 0, 'lastPageIndex_u_VLLV85CA', 1]
(3)(+0000010): Notifier.trigger('modify', 'setting', [1/lastPageIndex_u_VLLV85CA], {"1/lastPageIndex_u_VLLV85CA":{"changed":{"value":103}}}) called [observers: 8]
===============================================
Here is the corresponding Debug ID: D245393086 and D1115779859.
Thanks for your help. Hopefully we can find a solution.
Also, you should check if disabling third-party plugins has any effect.
Zotero Reader is slightly slower than Firefox 115 (on which the current Zotero version is based) and noticeably slower than the latest versions of Firefox. We can expect improved performance in future Zotero versions.
I have shared a video to the email address showing how the rendering lag occurs when scrolling and using the bookmarks.
The PDF is already in greyscale @matthew-hu but I have the same issue on colour and b&w. It is a real shame I love Zotero but this is making it unusable at times.
The file has a lot of annotations I will export and share with you. I have just noticed that zotero is using an insane amount to the tune of almost 34GB. I tried to run a debug at the same time but Zotero just crashed.
https://s3.amazonaws.com/zotero.org/images/forums/u8744031/phnouni5mssi9m0ucb4p.png
Thanks again for all your help