mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-18 12:08:38 +00:00
Each submission part writes a timestamp pair under TOTK_TRACE=perf; the completion thread reads it and sums the busy time without double-counting overlap. A second 60-frame perf line carries GPU ms per frame, fence waits of the render thread and of other threads, VRAM usage and budget (VK_EXT_memory_budget, else the allocator's own blocks against the heap size), working set and private bytes, and bound: gpu, cpu or pace. Devices without timestamp bits or a timestamp period log one line and show gpu n/a. vk_mem_resolve now reports the pool class of a span. The replay counts bytes bound or copied per class and use, and vk_mem_census logs the live pools by kind and flags with that traffic at frame 1800 (every 1800 frames with perf). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>