mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 04:49:57 -04:00
Break the memory report down past VMA, by owner in system memory, and by growth over a session.
Every report adds a line for video memory outside VMA (the driver's usage and budget per heap against VMA's blocks, and counts of pipelines by kind and by last use, stage libraries, compute pipelines, layouts and descriptor pools, with the swapchain, DLSS and FSR sizes), a line that splits the process's commit by owner (the game's heap and maps, device-local memory, VMA's host blocks, the C runtime heap with the shader caches, pipeline tables, texture cache, log queue and flight recorder in it, the driver's pipeline cache data and the rest), and a line naming what grew by more than 64 MiB since the report before and since play began. Every ten minutes of play and at exit a ranking line orders the categories by growth and marks those that only climbed; tests/mem_growth_check.py checks that bookkeeping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -315,6 +315,10 @@ void vk_exec_mesh_run_stops(char *out, size_t n);
|
||||
// NX2NAVI_EVO_TRACE=1 (diagnostics, vk_exec.c "event order trace"): one token per step of the replay's event order.
|
||||
void vk_exec_evt(char what, const void *event, uint32_t value);
|
||||
void vk_exec_evt_frame(uint64_t frame); // the game's present call: the frame's tokens are closed and logged
|
||||
// The memory report's descriptor pools (vk_memory.c outside_log): the replay's pools, spare ones included, the sets
|
||||
// each holds, and the texture pool's sets (0 before it exists).
|
||||
typedef struct { uint64_t pools, spare, sets_each, tex_sets; } VkDescMem;
|
||||
void vk_exec_desc_mem(VkDescMem *d);
|
||||
int vk_exec_held(void); // replay thread: held submissions waiting for a signal (event order)
|
||||
int vk_exec_held_ready(void); // ... and one of them can go on now (vk_backend.c present_held)
|
||||
// vk_dlaa.c: once DLSS has scaled the scene this frame, passes larger than the scene's light target vk_dlaa_swap_img
|
||||
|
||||
Reference in New Issue
Block a user