Skip to content

Make image Cache eviction strategy less aggressive in iced_wgpu#2403

Merged
hecrj merged 1 commit intomasterfrom
improve-image-cache-eviction
Apr 24, 2024
Merged

Make image Cache eviction strategy less aggressive in iced_wgpu#2403
hecrj merged 1 commit intomasterfrom
improve-image-cache-eviction

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
@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

Comments