Skip to main content

paint_safe

Function paint_safe 

Source
pub fn paint_safe(mode: PresentMode) -> bool
Expand description

Whether the loop may paint a window the system does not show with this present mode: not with a FIFO present (eframe’s default), which on Wayland waits for the compositor’s frame callback that a hidden window does not get; with one that does not wait (egui-pop’s choice on Wayland, windows::present_mode), or off Wayland, where nothing withholds a window’s redraw.