Turn the settings for older graphics cards on with one key, low_end_gpu = 1, and leave them off without it.

Mesh shaders as compute, the texture that gets memory of its own, staged mirror uploads and the shorter wait for the GPU, widened write-watch queries, the video memory limits and reserve, early upload batches, the asynchronous replay, the hot-pool rule and the recording thread on AMD cards without mesh shaders were measured on a Radeon RX 580 and run on no other card. Each keeps what 0.9.1 did unless the key or its own setting says otherwise; the key gives the defaults the way the device profile does. The notes describe them as that option, hold main's two new entries in one Changed section, and list the white edges in towns as a known issue.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-12 13:00:13 -05:00
parent 052c60dc0d
commit 2324a74602
10 changed files with 105 additions and 58 deletions

View File

@@ -166,15 +166,15 @@ void rec_begin(VkCommandBuffer cb, uint64_t fence) {
// past it). Keeping objects until their submission completed and ending a part from the recorder
// (rec_end_cb) fixed the white scene on an RX 6700 XT, but not this: 0.2.8 turned the recorder on for every
// GPU and the AMD reports came back the same day. NX2NAVI_VK_RECORDER=1 turns it on for an A/B run.
// On AMD GPUs without mesh shaders (GCN: RX 400/500, Vega; RDNA 1) it is on: every report above is from an
// On AMD GPUs without mesh shaders (GCN: RX 400/500, Vega; RDNA 1) it is on with low_end_gpu = 1: every report above is from an
// RDNA 2-4 card, and those all have mesh shaders. An RX 580 ran with it and NX2NAVI_REC_CHECK
// (no hazards), the replay's part of the game's wait after a frame's first submission 6.9 ms instead of 12.
const char *set = cfg_get("NX2NAVI_VK_RECORDER");
int amd_off = vk_caps.amd && vk_ctx()->has_mesh_shader;
int amd_off = vk_caps.amd && (vk_ctx()->has_mesh_shader || !rt_knob("LOW_END_GPU", "0")); // on only with low_end_gpu = 1
mode = rt_knob("VK_RECORDER", amd_off ? "0" : "1");
if (!mode && amd_off && !(set && *set))
rt_log("vk_rec: no recorder thread on AMD GPUs with mesh shaders (RDNA 2 and newer; NX2NAVI_VK_RECORDER=1 "
"turns it on)");
rt_log("vk_rec: no recorder thread on AMD GPUs (NX2NAVI_VK_RECORDER=1 turns it on; low_end_gpu = 1 does on "
"cards without mesh shaders)");
if (mode) {
plat_event_init(&wake_ev, 0, 0);
rec_prio = plat_thread_priority_get();