mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 09:09:56 -04:00
Keep the game on the largest-L3 die only when that die has 8 cores, and reserve no recorder core there.
cache_die moved the process to the logical processors of the largest L3 cache whenever the L3 sizes differed. That is right for a two-die X3D desktop part with 8 cores a die, but it also held the game to the 4 large cores of a mobile part whose 8 small cores share a smaller L3, and to the 6 cores of a 12-core X3D part, where the recording thread's reserved core then left the game 5. The die is now used only when it has 8 or more physical cores (perf.c cpu_placement logs when one is passed over). And while the process runs on that die alone, RECORDER_CORE=auto reserves no core for the recording thread, since the game's threads already have the die to themselves; =1 still reserves one. Checked: all runtime files compile. This PC has a single-die processor (one L3), where neither rule applies: a run still reserves the recording core (logical processors 14 and 15 of 16) and logs no cache die. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -99,6 +99,7 @@ void perf_lock_hold(void *site, uint64_t ns); // a lock held ns from site (vk_
|
||||
extern void (*perf_rec_waits)(uint64_t *full_ns, uint64_t *drain_ns); // set by the back end (vk_rec.c totals)
|
||||
void perf_present(uint64_t frame);
|
||||
void perf_cpu_start(void); // the process's logical processors (NX2NAVI_CACHE_DIE, NX2NAVI_ONE_PER_CORE), at start
|
||||
int perf_cpu_on_cache_die(void); // 1 while the process runs on the die with the largest L3 cache alone (perf.c cpu_placement)
|
||||
void perf_summary_flush(void); // prints the frame-time summary of the running period (exit); the 60 s lines come from perf_present
|
||||
void gfx_exit_log(void); // back end's lines for the exit summary (weak no-op in prof_win.c)
|
||||
void perf_gpu_wait(uint64_t t0); // a wait for a GPU fence ended (any thread; the render thread's also counts as PERF_FENCE)
|
||||
|
||||
Reference in New Issue
Block a user