mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 23:59:59 -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:
@@ -8,3 +8,4 @@ void logq_init(LogqSink sink); // before the first logq_write; line
|
||||
int logq_async(void); // from now on the log thread writes them; 0 when it could not be started
|
||||
void logq_write(const char *p, size_t n); // queues the bytes, or writes them when the queue is off or has no room
|
||||
void logq_sync(void); // writes what is queued, on the calling thread, and turns the queue off
|
||||
size_t logq_bytes(void); // the queue's buffers, for the memory report (vk_memory.c system_log)
|
||||
|
||||
Reference in New Issue
Block a user