Skip to content

GUI: Improved image caching logic to reduce memory usage. - #1042

Merged
cosven merged 9 commits into
feeluown:masterfrom
shinnkka:img_cache
May 28, 2026
Merged

GUI: Improved image caching logic to reduce memory usage.#1042
cosven merged 9 commits into
feeluown:masterfrom
shinnkka:img_cache

Conversation

@shinnkka

Copy link
Copy Markdown
Contributor

before:
图片
图片

after:
图片
图片

Comment thread feeluown/gui/widgets/song_minicard_list.py
Comment thread feeluown/gui/widgets/img_card_list.py Outdated
self.w_h_ratio = 1.0

self._device_pixel_ratio = QGuiApplication.instance().devicePixelRatio()
self._pixmap_cache_limit_kb = 128 * 1024

@shinnkka shinnkka May 26, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是128*1024kb,你希望缩小到32*1024kb吗(

@cosven cosven left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 cache 能不能抽出一个公共类出来呢,看着上下两段代码似乎差不多的样子

@shinnkka
shinnkka marked this pull request as draft May 26, 2026 16:36
@shinnkka
shinnkka marked this pull request as ready for review May 26, 2026 23:40
@cosven
cosven merged commit 3126c20 into feeluown:master May 28, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants