update_graph_and_bars

Function update_graph_and_bars 

Source
pub fn update_graph_and_bars(
    settings: Option<Res<'_, PerfHudSettings>>,
    handles: Option<Res<'_, HudHandles>>,
    samples: Res<'_, SampledValues>,
    history: ResMut<'_, HistoryBuffers>,
    scale_state: ResMut<'_, GraphScaleState>,
    bar_scale_states: ResMut<'_, BarScaleStates>,
    graph_mats: ResMut<'_, Assets<MultiLineGraphMaterial>>,
    bar_mats: ResMut<'_, Assets<BarMaterial>>,
    _label_node_q: Query<'_, '_, &mut Node>,
    label_text_q: Query<'_, '_, &mut Text>,
    label_color_q: Query<'_, '_, &mut TextColor>,
)
Expand description

System that updates graph and bar displays with current performance data. The system only runs if both PerfHudSettings and HudHandles are present.