mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 02:39:57 -04:00
Merge the audit: its map and ledger, the perf-trace markers and size lines, and the fixes of its Phase 4.
Verified by runs in the audit: the Market's periodic stall (a pool slot was listed once per refresh pass instead of once; the list fell from 160,385 entries to at most 3,192 and no frame over 20 ms remained while standing), orderly exits delete the pipeline prebuild's running marker (left behind, the next start wrote a skip file and every later start skipped the prebuild), the log and crash report name an area a save asks for that the game does not have, and the menu atlas hash no longer overflows a signed multiply. The other fixes compile and pass the regression route but their faults were never reproduced: see AUDIT.md section 13 for each. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -790,3 +790,15 @@ void vk_sync_shutdown(void) {
|
||||
}
|
||||
plat_mutex_unlock(&start_lock);
|
||||
}
|
||||
|
||||
// NX2NAVI_TRACE=perf "mem: sizes" (perf.c): command buffer slots (read without sub_lock, which a whole replay holds),
|
||||
// the completion queue and the submissions held back.
|
||||
void vk_sync_sizes(PerfSizes *s) {
|
||||
uint64_t slots = (uint64_t)__atomic_load_n(&nslots, __ATOMIC_RELAXED);
|
||||
plat_mutex_lock(&st_lock);
|
||||
uint64_t q = (uint64_t)qn;
|
||||
plat_mutex_unlock(&st_lock);
|
||||
perf_size(s, "command buffer slots", slots, 0, PERF_SIZE_NONE);
|
||||
perf_size(s, "completion queue", q, 0, PERF_SIZE_NONE);
|
||||
perf_size(s, "held submissions", (uint64_t)__atomic_load_n(&held_n, __ATOMIC_RELAXED), 0, PERF_SIZE_NONE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user