Skip to main content

set_max_fps

Function set_max_fps 

Source
pub fn set_max_fps(fps: u32)
Expand description

The frame-rate cap (DrawnUI Super.MaxFps). 0, the default: the display’s own rate, 120 Hz on a ProMotion iPhone. 60 keeps such a phone at 60. A cap the display cannot present is snapped to a whole divisor of its rate (120 Hz: 120, 60, 40, 30…). Can change at any time. The iOS host paces its display link with it; the other hosts do not read it yet.