Reserve no core for the recording thread by default

On an i9-14900KF (8 performance and 16 efficiency cores, 32 logical processors), with the replay on its own thread,
the core NX2NAVI_RECORDER_CORE=auto reserved (logical processors 14 and 15) left the woken replay thread unscheduled
for about 200 ms roughly once a second while the game stood in Kakariko. During each stall its queue held 40 to 50
items, its lock was free, the wakes had been sent and it used no CPU time, while a game thread waited on a fence of the
work in that queue: 27 frames a minute had a 150 ms or longer frame. With NX2NAVI_RECORDER_CORE=0 the same minute had
none. The default is now 0; auto and 1 still reserve the core, and the log says when none is reserved.
This commit is contained in:
TheShinySylveon
2026-11-11 16:59:50 -05:00
committed by chrg6
parent 6e87c921a1
commit 0cb2e6f00a
3 changed files with 20 additions and 12 deletions

View File

@@ -78,14 +78,15 @@
# Windows timer resolution of 1 ms for steadier frame pacing (0 = the Windows default).
# timer_1ms = 1
# The thread that records the GPU work (the first to spend half a second doing it, not the one that submits first) keeps
# the highest scheduling priority (recorder_prio), and a core of its own that the process's other threads stay off
# (recorder_core: auto = with 12 or more logical processors, unless the game runs on the cache die below, 1 always,
# 0 never). That is a fast core, with both of its
# logical processors: on Windows the highest-numbered core of the fastest efficiency class; on Linux the performance
# core that clocks highest on a hybrid CPU (else the core of the highest capacity or clock), and none when fewer than
# four cores are that fast. The log names the thread and its logical processors.
# the highest scheduling priority (recorder_prio), and can get a core of its own that the process's other threads stay
# off (recorder_core: 0 = never, the default; auto = with 12 or more logical processors, unless the game runs on the
# cache die below; 1 always). That is a fast core, with both of its logical processors: on Windows the highest-numbered
# core of the fastest efficiency class; on Linux the performance core that clocks highest on a hybrid CPU (else the core
# of the highest capacity or clock), and none when fewer than four cores are that fast. The log names the thread and
# its logical processors. Default 0: on an i9-14900KF the reserved core left the woken replay thread unscheduled for
# about 200 ms roughly once a second.
# recorder_prio = 1
# recorder_core = auto
# recorder_core = 0
# Submissions handed to the GPU queue together in one call, 1 to 16 (1 = each one at once).
# submit_batch = 4
# Occlusion query results are read back from the video card in batches, 0 or 1. Default: on. 0 reads each query with a