Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make image Cache eviction strategy less aggressive in iced_wgpu #2403

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Apr 24, 2024

Instead of trimming unconditionally at the end of a frame, we now trim the cache only when there is a cache miss.

This way, images that are not visible but still a part of the layout will stay cached. Eviction will only happen when the images are not a part of the UI for two consectuive frames.

Instead of trimming unconditionally at the end of
a frame, we now trim the cache only when there is a
cache miss.

This way, images that are not visible but still a
part of the layout will stay cached. Eviction will
only happen when the images are not a part of the
UI for two consectuive frames.
@hecrj hecrj added this to the 0.13 milestone Apr 24, 2024
@hecrj hecrj merged commit 5ef593c into master Apr 24, 2024
24 checks passed
@hecrj hecrj deleted the improve-image-cache-eviction branch April 24, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant