From 0cc247b513783da31d0202f77969d146cb206aca Mon Sep 17 00:00:00 2001 From: chrg6 Date: Thu, 12 Nov 2026 10:43:10 -0500 Subject: [PATCH] Record the flight recorder's thumbnails at 640x360. At 320x180 a frame of a 2560x1440 picture kept one texel in eight each way, and a flicker of a small object or of fine shading while the camera stands still did not show in a dump. The ring of 600 thumbnails takes 553 MB of host-visible memory instead of 138 MB while the recorder is on. Co-Authored-By: Claude Fable 5.2 --- runtime/flight.c | 4 ++-- runtime/flight.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/flight.c b/runtime/flight.c index 3ae714c4..da76d789 100644 --- a/runtime/flight.c +++ b/runtime/flight.c @@ -1,5 +1,5 @@ // NX2NAVI_FLIGHT=1 flight recorder: a ring of the last NX2NAVI_FLIGHT_FRAMES (600) presents, one record each (interval, -// render-thread blocked time per perf kind, event counts, the game's time step) and a 320x180 thumbnail each (gfx_present.c, blitted on the +// render-thread blocked time per perf kind, event counts, the game's time step) and a 640x360 thumbnail each (gfx_present.c, blitted on the // GPU by the present thread). A dump goes to /-f/: events.tsv (the texture events of its // frames, flight_tex), f.png per thumbnail and frames.tsv, written in that order by a background thread. Triggers: F8 while the game window has focus, a frame interval over // NX2NAVI_FLIGHT_SPIKE_MS (100; 0 off; at most one dump per 10 s), NX2NAVI_FLIGHT_AT=[,...] and @@ -111,7 +111,7 @@ void flight_init(void) { if (!(tex_ring = calloc(TEX_RING, sizeof *tex_ring))) rt_log("flight: no memory for the texture events, none kept"); flight_on = 1; rt_log("flight: on: last %d frames, %s; dump on F8, on a frame over %llu ms (one per 10 s)%s, to %s", ring_n, - thumbs_on ? "thumbnails 320x180" : "no thumbnails", (unsigned long long)(spike_ns / 1000000), + thumbs_on ? "thumbnails 640x360" : "no thumbnails", (unsigned long long)(spike_ns / 1000000), spike_ns ? "" : " (spike trigger off)", base_dir); if (thumbs_on) rt_log("flight: memory: records %llu KB, thumbnail ring %llu MB (host-visible)", diff --git a/runtime/flight.h b/runtime/flight.h index c5926458..80a6e182 100644 --- a/runtime/flight.h +++ b/runtime/flight.h @@ -3,8 +3,8 @@ #pragma once #include -#define FLIGHT_THUMB_W 320 -#define FLIGHT_THUMB_H 180 +#define FLIGHT_THUMB_W 640 +#define FLIGHT_THUMB_H 360 extern int flight_on; extern int vk_dump_white; // vk_dump.c, NX2NAVI_DUMP_WHITE // NX2NAVI_FLIGHT=1, set once by flight_init before the first present