Watch sessions from the Google for Games Developer Summit.

SwappyStats

#include <swappyGL_extra.h>

Swappy statistics, collected if toggled on with SwappyGL_enableStats.

Summary

See also: SwappyGL_getStats

Public attributes

idleFrames[MAX_FRAME_BUCKETS]
uint64_t
Histogram of the number of screen refreshes a frame waited in the compositor queue after rendering was completed.
lateFrames[MAX_FRAME_BUCKETS]
uint64_t
Histogram of the number of screen refreshes passed between the requested presentation time and the actual present time.
latencyFrames[MAX_FRAME_BUCKETS]
uint64_t
Histogram of the number of screen refreshes passed between the call to Swappy_recordFrameStart and the actual present time.
offsetFromPreviousFrame[MAX_FRAME_BUCKETS]
uint64_t
Histogram of the number of screen refreshes passed between two consecutive frames.
totalFrames
uint64_t
Total frames swapped by swappy.

Public attributes

idleFrames

uint64_t SwappyStats::idleFrames[MAX_FRAME_BUCKETS]

Histogram of the number of screen refreshes a frame waited in the compositor queue after rendering was completed.

For example: if a frame waited 2 refresh periods in the compositor queue after rendering was done, the frame will be counted in idleFrames[2]

lateFrames

uint64_t SwappyStats::lateFrames[MAX_FRAME_BUCKETS]

Histogram of the number of screen refreshes passed between the requested presentation time and the actual present time.

For example: if a frame was presented 2 refresh periods after the requested timestamp swappy set, the frame will be counted in lateFrames[2]

latencyFrames

uint64_t SwappyStats::latencyFrames[MAX_FRAME_BUCKETS]

Histogram of the number of screen refreshes passed between the call to Swappy_recordFrameStart and the actual present time.

For example: if a frame was presented 2 refresh periods after the call to Swappy_recordFrameStart the frame will be counted in latencyFrames[2]

offsetFromPreviousFrame

uint64_t SwappyStats::offsetFromPreviousFrame[MAX_FRAME_BUCKETS]

Histogram of the number of screen refreshes passed between two consecutive frames.

For example: if frame N was presented 2 refresh periods after frame N-1 frame N will be counted in offsetFromPreviousFrame[2]

totalFrames

uint64_t SwappyStats::totalFrames

Total frames swapped by swappy.