use bevy::{ diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin}, prelude::*, window::PresentMode, }; use bevy_prototype_debug_lines::{DebugLines, DebugLinesPlugin}; fn main() { App::new() .add_plugins(DefaultPlugins.set(WindowPlugin { primary_window: Some(Window { present_mode: PresentMode::AutoNoVsync, ..default() }), ..default() })) .add_plugins(DebugLinesPlugin::default()) .add_plugins(FrameTimeDiagnosticsPlugin::default()) .add_plugins(LogDiagnosticsPlugin { wait_duration: bevy::utils::Duration::new(5, 0), ..default() }) .add_systems(Startup, setup) .add_systems(Update, demo_circle) //.add_systems(Update, demo_block) .run(); } fn setup(mut commands: Commands) { commands.spawn(Camera3dBundle { transform: Transform::from_xyz(0.0, 0.0, 5.0), ..default() }); } fn demo_circle(time: Res