⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

struct PresentStats

A snapshot of how frames have been reaching the display recently, for checking performance at runtime. Only the flatscreen app modes present through a surface StereoKit can time; in XR and Offscreen this is all zeros.

Instance Fields and Properties

   
UInt64 latencyUs Microseconds from the most recent present call to its first pixel on screen, or 0 when the platform gave no display time for it.
uint repeatCount Of those, how many stayed on screen for two or more refreshes. A repeated frame is a visible hitch.
uint sampleCount Presents among the last 128 with a known display time.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!