StressInjection struct

Public types

struct ThreadLoad

Public static functions

static auto Get() -> StressInjection&
static void Spin(uint32_t microseconds)
Busy-wait on the calling thread (holds the core, like real work; never sleeps).

Public functions

void PumpWorkers()
void Reset()
Everything off.

Public variables

ThreadLoad Brain
ThreadLoad Encoder
ThreadLoad Sentinel
std::atomic<uint32_t> GpuDraws
extra times the scene is drawn each frame
std::atomic<uint32_t> BusyWorkers
job workers kept occupied
std::atomic<uint32_t> RollbackEvery
a forced rollback every this many fixed steps; 0 = none
std::atomic<uint32_t> RollbackDepth
how many frames back each forced rollback goes

Function documentation

void StressInjection::PumpWorkers()

Keep BusyWorkers workers occupied. Sentinel, once per iteration; with nothing asked for it is one relaxed load.