Skip to main content

mount_frame_rate

Function mount_frame_rate 

Source
pub(crate) fn mount_frame_rate(world: &mut World, ui: Entity, rate: Entity)
Expand description

Mount the frame-rate readout at the top of the window, centred.

An [egui::Area] rather than a window: it is pinned, not something the user can drag away or accidentally resize, and interactable(false) keeps it from swallowing a click meant for the scene underneath it.