Nits
This commit is contained in:
parent
81c242d894
commit
a51e2e1228
@ -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
|
||||
///
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user