2#include <engine/engine_export.h>
void update_eviction(const eviction_settings &settings)
float target_fraction
Evict down to this fraction of the reported maximum (hysteresis; should be < budget).
int manual_budget_mb
Manual budget (MiB) compared against the evictable resident bytes when not using auto budget.
int min_age_frames
Resources used within this many frames are protected from eviction.
float budget_fraction
Start evicting once GPU usage exceeds this fraction of the reported maximum.
int strategy
Selected gfx::eviction::strategy (index).
int max_evictions
Maximum resources evicted per frame (0 = unlimited).
friend auto operator==(const eviction_settings &lhs, const eviction_settings &rhs) -> bool=default
bool enabled
Master toggle: when true the per-frame driver evicts to keep usage under the budget.