mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-10 06:07:55 -06:00
fix: profiling system calculates mean of sums, not mean of means
This commit is contained in:
@@ -54,8 +54,8 @@ fn render_timing_display(
|
||||
.unwrap_or(0);
|
||||
|
||||
// Only draw background if there is text to display
|
||||
if max_width > 0 {
|
||||
let total_height = (lines.len() as u32) * line_height as u32;
|
||||
let total_height = (lines.len() as u32) * line_height as u32;
|
||||
if max_width > 0 && total_height > 0 {
|
||||
let bg_padding = 5;
|
||||
|
||||
// Draw background
|
||||
|
||||
Reference in New Issue
Block a user