startup: #2846's probe pre-check runs in every title run (always under the debugger) and drops the late load from ~16 to ~1 fps #3314
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#3314
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@lukaslw-lab on GitHub · 2026-11-28 08:09 UTC · original
Since #2846, the main executable's late load (140–250 s into a scripted run) drops from about 16 fps to about 1 fps
on this host. The pre-check is gated on
IsDebuggerPresent(), andrun.ps1always starts the title underdebug_launch.py, so everyprobe_readableand guarded copy asksVirtualQueryfirst.X2W_PROBE_PRECHECK=0cannot turn it off:
precheck_enabled()returnsIsDebuggerPresent() || <X2W_PROBE_PRECHECK set and not 0>.Windows 10 22H2 (19045), i7-4790K (4C/8T), 16 GB, RTX 3080 Ti, NVIDIA 32.0.16.1047. Release builds, warm shader cache
(revision 29), scripted input,
X2W_D3D12_RING_RELEASE_AT_SUBMIT=1 X2W_D3D12_TABLE_ALIAS=1 X2W_D3D12_ROOT_SRV_AT_DRAW=1,the same
run.ps1/debug_launch.py(fromca659396) in every run. Aggregates only; logs stay local.9345c21f(parent of #2846)fad97f47(#2846)fd7ce57a(main) + the change in #3315,X2W_PROBE_PRECHECK=0git bisectoverca659396..fd7ce57a(8 steps, verdict = fps 140–190 s; good 11–17, bad 1.0–3.6).debugger stops it saves.
Fix in #3315: an explicit
X2W_PROBE_PRECHECKwins over the debugger check (0off, anything else on); unsetkeeps today's behaviour. Whether it should be off by default under the debugger is your call.
AI-assisted (Claude); I ran the runs and the bisect.