Unravel Engine C++ Reference
Loading...
Searching...
No Matches
gfx::eviction::config Struct 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.
 

Detailed Description

Configuration for a single eviction pass.

Definition at line 113 of file eviction.h.

Member Data Documentation

◆ budget_bytes

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.

◆ max_evictions

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.

◆ max_idle_frames

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.

◆ min_age_frames

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.

◆ strat

strategy gfx::eviction::config::strat = strategy::lru

Victim selection policy.

Definition at line 116 of file eviction.h.

◆ target_bytes

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.


The documentation for this struct was generated from the following file: