|
Unravel Engine C++ Reference
|
Configuration for a single eviction pass. More...
#include <eviction.h>
Public Attributes | |
| strategy | strat = strategy::lru |
| Victim selection policy. | |
| std::uint64_t | budget_bytes = 0 |
| std::uint64_t | target_bytes = 0 |
| Evict down to this watermark (<= budget) to provide hysteresis. 0 falls back to budget_bytes. | |
| std::uint32_t | min_age_frames = 60 |
| Never evict a resource used within this many frames (anti-thrash protection). | |
| std::uint32_t | max_idle_frames = 0 |
| For strategy::age_ttl: evict anything idle for more than this many frames. | |
| std::uint32_t | max_evictions = 0 |
| Maximum number of resources to evict in a single pass (bounds latency). 0 means unlimited. | |
Configuration for a single eviction pass.
Definition at line 113 of file eviction.h.
| std::uint64_t gfx::eviction::config::budget_bytes = 0 |
Run a budget-driven pass only while resident bytes exceed this value. 0 disables the budget, in which case only strategy::age_ttl performs any work.
Definition at line 119 of file eviction.h.
| std::uint32_t gfx::eviction::config::max_evictions = 0 |
Maximum number of resources to evict in a single pass (bounds latency). 0 means unlimited.
Definition at line 127 of file eviction.h.
| std::uint32_t gfx::eviction::config::max_idle_frames = 0 |
For strategy::age_ttl: evict anything idle for more than this many frames.
Definition at line 125 of file eviction.h.
| std::uint32_t gfx::eviction::config::min_age_frames = 60 |
Never evict a resource used within this many frames (anti-thrash protection).
Definition at line 123 of file eviction.h.
| strategy gfx::eviction::config::strat = strategy::lru |
Victim selection policy.
Definition at line 116 of file eviction.h.
| std::uint64_t gfx::eviction::config::target_bytes = 0 |
Evict down to this watermark (<= budget) to provide hysteresis. 0 falls back to budget_bytes.
Definition at line 121 of file eviction.h.