ludus::platform::PacingPolicy¶
Ludus Wiki · API overview · Browse API
Struct
Application-chosen pacing schedule.
Declared in modules/platform/include/ludus/platform/frame_pacing.h
#include <ludus/platform/frame_pacing.h>
struct ludus::platform::PacingPolicy final
Fields¶
Interval¶
foundation::time::Duration ludus::platform::PacingPolicy::Interval
Target interval between frame starts. Configure() accepts 1 ns to one second; a default-constructed FramePacer has zero, which disables pacing.
Related types: foundation::time::Duration
Declared in modules/platform/include/ludus/platform/frame_pacing.h
MaximumLateness¶
foundation::time::Duration ludus::platform::PacingPolicy::MaximumLateness
Lateness at which a missed schedule is abandoned instead of skipped. A frame that starts at most this late keeps the target phase; a later one re-anchors the schedule at its actual start. Zero re-anchors after any lateness.
Related types: foundation::time::Duration
Declared in modules/platform/include/ludus/platform/frame_pacing.h