receive_frame_nanos

Function receive_frame_nanos 

Source
pub fn receive_frame_nanos<F>(callback: F)
where F: FnMut(u64) -> FrameNanosControl + Send + 'static,
Expand description

Register a per-frame callback driven by the renderer’s frame clock.

Registration is keyed by the current callsite identity. Repeated calls from the same position keep the existing active callback until it returns FrameNanosControl::Stop.