diff --git a/crates/bevy_dev_tools/src/fps_overlay.rs b/crates/bevy_dev_tools/src/fps_overlay.rs index 426bf7647a..478b94846d 100644 --- a/crates/bevy_dev_tools/src/fps_overlay.rs +++ b/crates/bevy_dev_tools/src/fps_overlay.rs @@ -114,7 +114,7 @@ pub struct FrameTimeGraphConfig { pub enabled: bool, /// The minimum acceptable FPS /// - /// Anything bellow this will show a red bar + /// Anything below this will show a red bar pub min_fps: f32, /// The target FPS /// diff --git a/crates/bevy_dev_tools/src/frame_time_graph/mod.rs b/crates/bevy_dev_tools/src/frame_time_graph/mod.rs index 6fad18765f..37fe69d581 100644 --- a/crates/bevy_dev_tools/src/frame_time_graph/mod.rs +++ b/crates/bevy_dev_tools/src/frame_time_graph/mod.rs @@ -19,6 +19,7 @@ const FRAME_TIME_GRAPH_SHADER_HANDLE: Handle = /// Plugin that sets up everything to render the frame time graph material pub struct FrameTimeGraphPlugin; + impl Plugin for FrameTimeGraphPlugin { fn build(&self, app: &mut bevy_app::App) { load_internal_asset!( @@ -51,6 +52,7 @@ pub struct FrameTimeGraphConfigUniform { // controls whether or not the bars width are proportional to their delta time proportional_width: u32, } + impl FrameTimeGraphConfigUniform { /// `proportional_width`: controls whether or not the bars width are proportional to their delta time pub fn new(target_fps: f32, min_fps: f32, proportional_width: bool) -> Self {