Skip to content

st: Limit texture loading to 9 parallel operations - #13947

Open
leigh123linux wants to merge 1 commit into
linuxmint:masterfrom
leigh123linux:glycin_fix
Open

st: Limit texture loading to 9 parallel operations#13947
leigh123linux wants to merge 1 commit into
linuxmint:masterfrom
leigh123linux:glycin_fix

Conversation

@leigh123linux

Copy link
Copy Markdown
Member

A recent change in Glycin exposed this issue in the texture loading
code. GTask is not supposed to handle more than a few hundreds of
parallel tasks, and yet, StTextureCache was loading every async
request immediately. This may cause the GTask thread scheduler to
starve, and the most visible indication that this is happening are
icons in Cinnamon that never finish loading.
Limit the number of textures loading in parallel to 9. The added
time to load icons is negligible, and is offset by loading them
faster, since we're not hitting the disk with hundreds of random
reads at the same time.

Based on https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4349

I used Claude to port the change to cinnamon.

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.

1 participant