mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 08:39:57 -04:00
Keep the previous picture on screen instead of showing a frame that lacks draws, and show the game's own VRAM in the overlay.
A draw whose shader or pipeline is still building is left out of its frame, and the frame was shown without it: a black or unlit picture with the interface intact when it was a lighting pass, a light going out, or ground missing for a frame. In a player's session a full-screen draw was skipped after its 50 ms and the frame came out black as a boulder hit. The frame's present is now left out when draws were skipped (vk_backend.c frame_hold, NX2NAVI_FRAME_HOLD_MS, 120 by default, 0 off). The game runs on, so nothing waits. The hold comes from an allowance that fills again at an eighth of the clock's rate, so a long build or a run of them shows its frames as before and does not freeze the picture; a full-screen draw that would be skipped with the allowance spent waits on instead, 500 ms at most. Not with DLSS Frame Generation. On a first walk through a village with no pipeline recorded, 21 of the 23 frames with skipped draws were held back; in the Lost Woods, 7 of 8. The performance overlay: the VRAM line is the card's dedicated memory in use, which counts every program on it: a player read 14.5 GB as the game's while the game held 7.3 GB. The line's third cell now gives what this process holds on the device-local heaps (the driver's budget figure), in place of the GPU clock, which stays where the driver gives no budget. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,9 @@ typedef struct {
|
||||
// ADL (AMD)
|
||||
char gpu_name[96];
|
||||
float gpu_pct, gpu_temp_c, gpu_power_w, gpu_clock_mhz, vram_used_mb, vram_total_mb;
|
||||
// of vram_used_mb, which counts every program on the card, what this process holds (the driver's figure for
|
||||
// the device-local heaps, perfmon_set_vram_game); -1 unknown
|
||||
float vram_game_mb;
|
||||
// per frame, averaged over the last half second: replay (NVN to Vulkan recording), GPU busy time (timestamps; -1
|
||||
// without them), the render thread's waits for pipeline builds, shader translation and texture uploads, and the
|
||||
// textures uploaded
|
||||
@@ -41,6 +44,9 @@ void perfmon_mode(int mode);
|
||||
// The Vulkan device the game renders on: its name, its LUID (8 bytes; NULL when the driver gives none), its PCI bus
|
||||
// (-1 unknown) and its device-local memory. Before the first perfmon_mode(2).
|
||||
void perfmon_set_gpu(const char *name, const uint8_t *luid, int pci_bus, float vram_total_mb);
|
||||
// How the sampling thread asks for the device-local memory this process holds, in MB (vk_memory.c
|
||||
// vk_mem_device_used_mb; negative when the driver does not report it). Called twice a second while the overlay is full.
|
||||
void perfmon_set_vram_game(float (*used_mb)(void));
|
||||
// A game frame was presented (perf_present, the render thread, only while the overlay is on): the time since the last
|
||||
// one, the render thread's waits of this frame (PERF_N entries, host.h), its replay time and the running count of
|
||||
// texture uploads.
|
||||
|
||||
Reference in New Issue
Block a user