feat: update diagnostic logs for skele work/total/budget split

This commit is contained in:
2026-08-24 17:23:44 +02:00
parent 605d34777b
commit 26d08228a7
3 changed files with 18 additions and 16 deletions
+7 -6
View File
@@ -70,12 +70,13 @@ int main(int argc, char *argv[])
if (now - last_print >= 1000000000ULL) { if (now - last_print >= 1000000000ULL) {
stk_log(STK_LOG_INFO, stk_log(STK_LOG_INFO,
"fps=%.1f frame=%.2fms/%.2fms tps=%.1f tick=%lluns/%lluns idle=%lluns", "fps=%.1f frame=%.2fms/%.2fms/%.2fms tps=%.1f tick=%lluns/%lluns/%lluns",
skele_fps, skele_frame_time_ms, skele_fps, skele_frame_work_time_ms,
skele_frame_budget_ms, skele_tps, skele_frame_render_time_ms, skele_frame_budget_ms,
(unsigned long long)skele_tick_time_ns, skele_tps,
(unsigned long long)skele_tick_ns, (unsigned long long)skele_tick_work_time_ns,
(unsigned long long)skele_tick_idle_ns); (unsigned long long)skele_tick_total_time_ns,
(unsigned long long)skele_tick_ns);
last_print = now; last_print = now;
} }
} }
+7 -6
View File
@@ -70,12 +70,13 @@ int main(int argc, char *argv[])
if (now - last_print >= 1000000000ULL) { if (now - last_print >= 1000000000ULL) {
stk_log(STK_LOG_INFO, stk_log(STK_LOG_INFO,
"fps=%.1f frame=%.2fms/%.2fms tps=%.1f tick=%lluns/%lluns idle=%lluns", "fps=%.1f frame=%.2fms/%.2fms/%.2fms tps=%.1f tick=%lluns/%lluns/%lluns",
skele_fps, skele_frame_time_ms, skele_fps, skele_frame_work_time_ms,
skele_frame_budget_ms, skele_tps, skele_frame_render_time_ms, skele_frame_budget_ms,
(unsigned long long)skele_tick_time_ns, skele_tps,
(unsigned long long)skele_tick_ns, (unsigned long long)skele_tick_work_time_ns,
(unsigned long long)skele_tick_idle_ns); (unsigned long long)skele_tick_total_time_ns,
(unsigned long long)skele_tick_ns);
last_print = now; last_print = now;
} }
} }
+4 -4
View File
@@ -43,11 +43,11 @@ int main(int argc, char *argv[])
if (tick_start - last_print >= 1000000000ULL) { if (tick_start - last_print >= 1000000000ULL) {
stk_log(STK_LOG_INFO, stk_log(STK_LOG_INFO,
"tps=%.1f tick=%lluns/%lluns idle=%lluns", "tps=%.1f tick=%lluns/%lluns/%lluns",
skele_tps, skele_tps,
(unsigned long long)skele_tick_time_ns, (unsigned long long)skele_tick_work_time_ns,
(unsigned long long)skele_tick_ns, (unsigned long long)skele_tick_total_time_ns,
(unsigned long long)skele_tick_idle_ns); (unsigned long long)skele_tick_ns);
last_print = tick_start; last_print = tick_start;
} }