Remove commented code

This commit is contained in:
Jarrod Doyle 2024-03-23 10:14:49 +00:00
parent 5d463daa1e
commit 93a38db840
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 0 additions and 38 deletions

View File

@ -131,44 +131,6 @@ impl<'window> App<'window> {
} }
_ => (), _ => (),
} }
// if !self.render_ctx.handle_window_event(&event, control_flow) {
// match event {
// Event::WindowEvent {
// ref event,
// window_id,
// } if window_id == self.render_ctx.window.id() => {
// camera_controller.process_events(event);
// }
// Event::RedrawRequested(_) => {
// let now = Instant::now();
// let dt = now - last_render_time;
// last_render_time = now;
// camera_controller.update(dt);
// camera_controller.update_buffer(&self.render_ctx);
// renderer.render(&self.render_ctx);
// renderer.update(&dt, &self.render_ctx);
// renderer.update_brickmap(&self.render_ctx, &mut world);
// // Simple framerate tracking
// self.render_ctx.window.set_title(&format!(
// "{}: {} fps",
// self.title,
// (1.0 / dt.as_secs_f32()).floor()
// ));
// cumulative_dt += dt.as_secs_f32();
// frames_accumulated += 1.0;
// if cumulative_dt >= 1.0 {
// let fps = frames_accumulated * 1.0 / cumulative_dt;
// let frame_time = cumulative_dt * 1000.0 / frames_accumulated;
// log::info!("FPS: {}, Frame Time: {}", fps.floor(), frame_time);
// cumulative_dt = 0.0;
// frames_accumulated = 0.0;
// }
// }
// _ => {}
// }
// }
}); });
Ok(()) Ok(())