This commit is contained in:
Daniel Skates 2025-07-08 22:42:59 +08:00
parent 81c242d894
commit a51e2e1228
2 changed files with 3 additions and 1 deletions

View File

@ -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
///

View File

@ -19,6 +19,7 @@ const FRAME_TIME_GRAPH_SHADER_HANDLE: Handle<Shader> =
/// 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 {