From c8e455053b552c814771302be5634c686f3befe7 Mon Sep 17 00:00:00 2001 From: Vijfhoek Date: Wed, 2 Jun 2021 01:26:29 +0200 Subject: [PATCH] Fix fps table alignment --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9284b34..e2061ac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,8 +8,8 @@ mod state; mod text_renderer; mod texture; mod time; -mod view; mod vertex; +mod view; mod world; use std::time::{Duration, Instant}; @@ -105,7 +105,7 @@ fn main() { let fps_min = 1_000_000 / frametime_max.as_micros(); println!( - "{:>4} frames | frametime avg={:>5.2}ms min={:>5.2}ms max={:>5.2}ms | fps avg={:>4} min={:>4} max={:>4} | {:>8} tris", + "{:>4} frames | frametime avg={:>5.2}ms min={:>5.2}ms max={:>5.2}ms | fps avg={:>5} min={:>5} max={:>5} | {:>8} tris", frames, frametime.as_secs_f32() * 1000.0, frametime_min.as_secs_f32() * 1000.0, frametime_max.as_secs_f32() * 1000.0, fps, fps_min, fps_max, triangle_count, );