Repository navigation
Posters: a backdrop left behind by a page is evicted before the posters, so tiles stop blinking - #1105
Merged
Conversation
…rs, so tiles stop blinking A backdrop (3.7 to 8.3 MB decoded) that a page left behind stayed resident while the texture cache evicted dozens of older posters one by one to make room for an arrival, and each of those tiles blinked when it came back. The cache now evicts the heavy entries (a Residency upload, per class_for) first, oldest first within each class. What is on screen stays protected exactly as before, and the byte and slot ceilings are unchanged. A backdrop that is evicted comes back through the same disk-first path as any other picture. The new unit test, a_heavy_entry_is_evicted_before_an_older_light_one, fails against the old oldest-first order. Its fixture builder is now one shared helper next to ready() instead of a closure copied into each test. Signed-off-by: Tiago Pereira <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Collaborator
|
Merged, thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the texture cache is full, an arrival evicted the oldest entries one by one. A backdrop (3.7 to 8.3 MB decoded) that a page had left behind could stay resident while dozens of older posters went first, and each of those tiles blinked when it came back. The eviction loop now takes the heavy entries (a
Class::Residencyupload, perclass_for) before the light ones, oldest first within each class. What is on screen stays protected as before; the byte and slot ceilings are unchanged.How it was checked:
a_heavy_entry_is_evicted_before_an_older_light_one; it fails against the old oldest-first order (watched red, then green). The test fixture builder is now one shared helper next toready().make checkandmake check-nodefpass on the branch.