Bugs
Done
Gallery view lag and high memory usage when card cover is set to page content
What went wrong?
When viewing a collection or inline view in Gallery layout with Card cover set to Page content (showing the first image from inside the document body), the app becomes very heavy and sluggish:
- Scrolling through the gallery cards stutters and drops frames noticeably.
- Memory and CPU usage increase significantly as cards attempt to decode and render images.
- Switching between tabs or opening cards experiences noticeable lag.
This occurs because full-resolution images from document bodies are being loaded and decoded directly onto the gallery cards on the main UI thread, without downsampling or aggressive viewport lazy-loading.
What should happen?
Gallery views using page content covers should scroll smoothly and remain lightweight:
- Thumbnail Generation: The app should generate and cache lightweight, low-resolution thumbnails specifically for card previews instead of decoding full-resolution original images.
- Viewport Lazy-Loading: Only decode and render images that are actively visible on screen, deferring off-screen cards until they are scrolled into view.
- Off-Thread Decoding: Ensure image processing happens off the main UI rendering thread so scrolling never stutters.
0 Comments
Sign in to comment
No comments yet. Be the first to share your thoughts.
