benilla-re systems structs docs

s_presentStepIndex

global · gx

Address
0xc0ed50 · 4 bytes, up to 0xc0ed53
Type
uint32_t
Meaning
Holds the next slot of the present step ring, 0 to 63
Confidence
verified, proof one
Finding
gx/slots#frame-counters

Finding: Frame counters in gx: the device's virtual slots

The base present adds 1 to the frame count +0x74, stores the frame rate at +0x70, clears the capture request and moves the frame's fifteen counters +0x70 to +0xa8 into +0x34 to +0x6c, zeroing all but the frame count and the texture count and bytes (+0x84, +0x88). The rate is __ftol(f * 64.0 / s), where s is the sum of the last 64 steps of the time-stamp counter between presents and f its ticks per second, and 99 when s is at most 1024. f is measured once: the counter's advance over Sleep(250), started at a GetTickCount change, times 4.

The derivation is in the doc.