printing average frame time in examples/halmark when bunnies are spawned after first 100 frames (#9854)

This commit is contained in:
Sir authored and GitHub committed 2026-07-15 17:36:11 +02:00
1 parent 372f23df12
commit 7c39e70502
1 file changed
+1 -1
+1 -1
View File
@@ -885,7 +885,7 @@ impl ApplicationHandler for App {
self.accum_time += self.last_frame_inst.elapsed().as_secs_f32();
self.last_frame_inst = Instant::now();
self.frame_count += 1;
if self.frame_count == 100 && !ex.is_empty() {
if self.frame_count >= 100 && !ex.is_empty() {
println!(
"Avg frame time {}ms",
self.accum_time * 1000.0 / self.frame_count as f32