DescriptionMake GrResourceCache dynamically change between LRU and random replacement strategies.
Random performs significantly better when each frame exceeds the budget by a small margin whereas LRU has worst case behavior.
The decision of which to use is made based on the history from a few frames of the ratio of total unique key cache misses to unique key cache misses of resources purged in the last 2 frames.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2321563006
Committed: https://skia.googlesource.com/skia/+/0f147ac2ae575bbad3515a526f13700bc5c8e9d7
Patch Set 1 #Patch Set 2 : rebase #
Total comments: 10
Patch Set 3 : Address comments #Patch Set 4 : work around gcc bug #Patch Set 5 : rebase #Patch Set 6 : fix merge error #Patch Set 7 : Fix another merge error #Patch Set 8 : fix recursive flusing, add asserts #
Messages
Total messages: 24 (10 generated)
|