diff options
author | bsalomon <bsalomon@google.com> | 2016-10-03 14:07:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-03 14:07:01 -0700 |
commit | 0f147ac2ae575bbad3515a526f13700bc5c8e9d7 (patch) | |
tree | c5a3f893dec0881746d1d0eeb06a7ad589ac186c /src/effects | |
parent | e60d85597f803c4dff6329840215af1d1d9a8fdc (diff) |
Make 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
Review-Url: https://codereview.chromium.org/2321563006
Diffstat (limited to 'src/effects')
0 files changed, 0 insertions, 0 deletions