class

FVramPressureGovernor

Turns the driver's VRAM budget into a cap on a streaming pool (one governor per pool: textures, mesh LODs). The configured pool is a guess made at startup (half the card); the budget the OS grants shrinks when another process takes VRAM, and a pool that keeps asking for its full size past that point pages the whole process out of local memory. Over the high mark the cap drops to the resident streaming bytes minus this pool's share of the overshoot, so the farthest textures or least recently seen meshes coarsen first; under the low mark it relaxes by a quarter of the headroom per update and lifts entirely once it no longer constrains anything. Pools that share one budget split the overshoot by their resident bytes (SharedOvershoot): each taking the whole of it would evict twice what the budget needs.

Module
Game
Header
#include "Streaming/VramPressureGovernor.h"
Namespace
Mowo

Properties

TypeNameDescription
static constexpr doublekHighMarkDefault 0.95.
static constexpr doublekTargetMarkDefault 0.90.
static constexpr doublekLowMarkDefault 0.85.
static constexpr uint64_tkFloorBytesNever squeeze the pool below this: past it the streamer is down to tail mips and the overshoot belongs to someone else. Default 64ull << 20.

Public functions

ReturnsNameDescription
FGpuMemoryStatsWithForcedBudgetThe driver's sample with the OS budget replaced by forcedBudgetBytes (0 keeps the live one): r.TextureStreaming.ForceBudgetMB, which makes a large card behave as a small one so the pressure path can be watched and tested on any machine.
doubleSharedOvershootThis pool's share of an overshoot that several pools answer together.
uint64_tUpdateThe pool to apply this update (0 = unlimited, as the cvar means it).
boolIsCapping
uint64_tGetCapBytes
uint64_tApplyThe configured pool under the cap this governor last decided, for the ticks between two driver samples.
uint32_tGetPressureUpdates

Function details

WithForcedBudget

C++
static FGpuMemoryStats WithForcedBudget(const FGpuMemoryStats& live, uint64_t forcedBudgetBytes)

The driver's sample with the OS budget replaced by forcedBudgetBytes (0 keeps the live one): r.TextureStreaming.ForceBudgetMB, which makes a large card behave as a small one so the pressure path can be watched and tested on any machine. Usage stays live.

SharedOvershoot

C++
static double SharedOvershoot(uint64_t poolResidentBytes, uint64_t allPoolsResidentBytes)

This pool's share of an overshoot that several pools answer together.

Update

C++
uint64_t Update(uint64_t configuredBytes, uint64_t streamingResidentBytes, const FGpuMemoryStats& stats, double overshootShare = 1.0)

The pool to apply this update (0 = unlimited, as the cvar means it).

IsCapping

C++
bool IsCapping() const

GetCapBytes

C++
uint64_t GetCapBytes() const

Apply

C++
uint64_t Apply(uint64_t configuredBytes) const

The configured pool under the cap this governor last decided, for the ticks between two driver samples.

GetPressureUpdates

C++
uint32_t GetPressureUpdates() const
Generated from Streaming/VramPressureGovernor.h via game.json · Nov 5, 2026Version 1.0.0