implemented tile cache and raised performance

This commit is contained in:
2026-03-24 13:40:09 +00:00
parent 6c1366ace9
commit 490b1243d8
3 changed files with 76 additions and 32 deletions
+5 -2
View File
@@ -213,9 +213,12 @@ impl ApplicationHandler for PrometeuApp {
let fps = self.frames_since_last_update as f64 / stats_elapsed.as_secs_f64();
let kb = self.machine.gfx.memory_usage_bytes() as f64 / 1024.0;
let frame_budget_us = 16666.0;
let cpu_load = (self.machine.last_frame_cpu_time_us as f64 / frame_budget_us) * 100.0;
let title = format!(
"PROMETEU | GFX: {:.1} KB | FPS: {:.1} | Frame: {}",
kb, fps, self.machine.frame_index
"PROMETEU | GFX: {:.1} KB | FPS: {:.1} | Load: {:.1}% | Frame: {}",
kb, fps, cpu_load, self.machine.frame_index
);
window.set_title(&title);
}