Skip to content

Put AnimationMotionPref/ThumbnailTypePref in Redux - #248

Merged
CrystalSplitter merged 3 commits into
masterfrom
crystal/cache-prefs
Oct 25, 2026
Merged

CrystalSplitter merged 3 commits into
masterfrom
crystal/cache-prefs

Conversation

@CrystalSplitter

@CrystalSplitter CrystalSplitter commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

This saves us costly IPC calls on each component render.
Additionally, move the getters to invoke, so we can't slow
down the world with sendSync.

This saves us costly IPC calls on each component render.
Additionally, move the getters to invoke, so we can't slow
down the world with `sendSync`.
@CrystalSplitter CrystalSplitter changed the title WIP Put AnimationMotionPref/ThumbnailTypePref in Redux Oct 25, 2026
@CrystalSplitter
CrystalSplitter marked this pull request as ready for review October 25, 2026 00:16
Comment thread src/components/cards/cached-img.tsx Resolved
@nubesurrealista

Copy link
Copy Markdown
Collaborator

I can test if needed :3

@CrystalSplitter

Copy link
Copy Markdown
Collaborator Author

Feel free. What this changes is the Animation/Thumb preference system.

@nubesurrealista

Copy link
Copy Markdown
Collaborator

Tested now, everything is fine n.n

window.utils and window.settings calls are extremely slow, and
we should avoid calling them if we have to. Most images are not
animated.

In theory, this should probably also be part of the redux state.
However, this is annoying to thread. So let's just move this lower
and we won't have to worry about it.
@CrystalSplitter

Copy link
Copy Markdown
Collaborator Author

Everything looks good on my end. Submitting.

@CrystalSplitter
CrystalSplitter merged commit 8f50d7b into master Oct 25, 2026
5 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.

2 participants