mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 19:29:57 -04:00
Bring public main's bug capture on F8 and its removal of the Steam co-op into the 0.10.0 line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/architecture.md # launcher/steamlib.py # launcher/ui/app.py # runtime/boot.c # runtime/cfg.c # runtime/flight.c # runtime/flight.h # runtime/gfx_present.c # tests/launcher_test.py
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// NX2NAVI_FLIGHT=1 flight recorder (flight.c): the last frames' timing and event counts plus a thumbnail each, written to
|
||||
// disk on F8, after a slow frame or after a one-frame flash, so a glitch or stutter seen in play can be read after the
|
||||
// fact.
|
||||
// disk with a bug capture (F8, bugcap.c), after a slow frame or after a one-frame flash, so a glitch or stutter seen
|
||||
// in play can be read after the fact.
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -18,6 +18,9 @@ void flight_mem(uint64_t *records, uint64_t *thumbs);
|
||||
// blocked time per PERF_* kind in this frame, and the running PERF_CNT_* totals.
|
||||
void flight_frame(uint64_t frame, uint64_t now_ns, uint64_t interval_ns, const uint64_t blocked_ns[],
|
||||
const volatile int64_t counts[]);
|
||||
// A bug capture at this frame (the render thread, before or after flight_frame): the recorder dumps the frames around
|
||||
// it into dir. 0 when the recorder is off or busy with another dump.
|
||||
int flight_capture(uint64_t frame, uint64_t interval_ns, const char *dir);
|
||||
|
||||
// Texture events of the recorded frames (vk_texture.c), written with each dump as events.tsv: a texture made (with how
|
||||
// its content started), uploaded, uploaded again, released by the game, taken back after a release, or destroyed. Each
|
||||
@@ -49,6 +52,9 @@ void flight_tex(int kind, uint64_t addr, uint32_t format, uint32_t w, uint32_t h
|
||||
const char *vk_texture_start_name(int start); // vk_texture.c: the names of Tex.og_start and of drop_tex's reasons
|
||||
const char *vk_texture_drop_name(int why);
|
||||
|
||||
// A w x h RGBA picture as a compressed RGB PNG (Paeth rows, fixed-Huffman deflate); any thread, recorder on or off.
|
||||
int flight_write_png(const char *path, const uint8_t *rgba, uint32_t w, uint32_t h);
|
||||
|
||||
// gfx_present.c: the present thread blits every presented frame into a host-visible ring of n thumbnails.
|
||||
void vk_thumbs_enable(int n); // before the first present; n slots of FLIGHT_THUMB_W x FLIGHT_THUMB_H
|
||||
void vk_thumbs_frame(uint64_t frame); // the present thread names the frame of the vk_present_image call that follows
|
||||
|
||||
Reference in New Issue
Block a user