Skip to main content

fps_badge

Function fps_badge 

Source
pub fn fps_badge(stats: &FrameStats) -> impl IntoElement
Expand description

Renders FrameStats as a color-coded status-bar chip.

Green at ≥ 50fps, amber at ≥ 25fps, red below — so a selection-drag regression is visible at a glance. Returns a plain div, so hosts can drop it anywhere (status bars, overlays).