From 83bec9d64918acdda41acbcf777bea9b4498bf6c Mon Sep 17 00:00:00 2001 From: pax Date: Sun, 5 Apr 2026 19:56:27 -0500 Subject: [PATCH] Don't prefetch full images on infinite scroll drain Infinite scroll only needs thumbnails (already fetched inline). Full image prefetch only triggers on post click and initial search. --- booru_viewer/gui/app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/booru_viewer/gui/app.py b/booru_viewer/gui/app.py index 8ee0765..2cf8b26 100644 --- a/booru_viewer/gui/app.py +++ b/booru_viewer/gui/app.py @@ -909,11 +909,9 @@ class BooruApp(QMainWindow): if self._append_queue: QTimer.singleShot(50, self._drain_append_queue) else: - # All done — unlock loading, evict, prefetch + # All done — unlock loading, evict self._loading = False self._auto_evict_cache() - if self._db.get_setting("prefetch_mode") in ("Adjacent", "Full page"): - self._prefetch_adjacent(idx) # Check if still at bottom or content doesn't fill viewport sb = self._grid.verticalScrollBar() from .grid import THUMB_SIZE, THUMB_SPACING