startup: #1408's thread holding slows the post-confirm load 3–4x #3333

Closed
opened 2026-11-28 10:10:15 +00:00 by github-bot · 1 comment
Owner

@⁠lukaslw-lab on GitHub · 2026-11-28 10:05 UTC · original

Since #1408 the debugger holds every other thread for each hook step. A 250 s title run has ~28k step windows with
~100 threads alive, mostly during the post-confirm load, and run.ps1 can't pass --suspend-others 0.

Same build and input script, RTX 3080 Ti / i7-4790K / Win10; fps measured between inflated-block counts:

Thread holding runs fps 50–75k blocks 50k→100k blocks
on (main) 4 3–5 80–100 s
off (--suspend-others default flipped, or the launcher before #1408) 3 18–23 30–40 s

#3334 adds run.ps1 -SuspendOthers 0 / run.sh --suspend-others 0; the default stays on, so traces are unchanged.

@⁠tedin7: thanks for #1408. It fixes real trace gaps; this only adds a way to turn it off for timing runs.

**@⁠lukaslw-lab** on GitHub · 2026-11-28 10:05 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3331) Since #1408 the debugger holds every other thread for each hook step. A 250 s title run has ~28k step windows with ~100 threads alive, mostly during the post-confirm load, and `run.ps1` can't pass `--suspend-others 0`. Same build and input script, RTX 3080 Ti / i7-4790K / Win10; fps measured between inflated-block counts: | Thread holding | runs | fps 50–75k blocks | 50k→100k blocks | |---|---|---|---| | on (`main`) | 4 | 3–5 | 80–100 s | | off (`--suspend-others` default flipped, or the launcher before #1408) | 3 | 18–23 | 30–40 s | #3334 adds `run.ps1 -SuspendOthers 0` / `run.sh --suspend-others 0`; the default stays on, so traces are unchanged. @⁠tedin7: thanks for #1408. It fixes real trace gaps; this only adds a way to turn it off for timing runs.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 10:10:15 +00:00
Author
Owner

@⁠Leyukaka on GitHub · 2026-11-28 14:41 UTC · original

With holding on, the application also stops: an access violation in its own code, a write to address 0. It did not stop in the run with holding off.

Offline VM, same shader cache, 300 s runs, A pressed every 10 s from 120 s:

Commit --suspend-others First runtime service created Compute PSOs created after the input Result
99e3ef0e 1 (default) 74.6 s 3 stop at 242.2 s
99e3ef0e 0 15.3 s 29 running at 300 s
c45bf9ab (before #1408) 1 15.4 s 29 running at 300 s
  • In the --suspend-others 0 run, a manual click came at about 190 s; all 29 PSOs were created before it, at 145-147 s.
  • The stop also happened in four runs with manual input at 24fcd0b5 and 99e3ef0e, between 189.9 and 215.9 s.
  • Without input, the application does not advance (0 compute PSOs created) and runs 300 s at six commits in c45bf9ab..99e3ef0e.

So runs that go past the first confirm need --suspend-others 0 (#3334); otherwise their timing and outcome reflect the harness.

**@⁠Leyukaka** on GitHub · 2026-11-28 14:41 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3331#issuecomment-7240864647) With holding on, the application also stops: an access violation in its own code, a write to address 0. It did not stop in the run with holding off. Offline VM, same shader cache, 300 s runs, A pressed every 10 s from 120 s: | Commit | `--suspend-others` | First runtime service created | Compute PSOs created after the input | Result | |---|---|---|---|---| | `99e3ef0e` | 1 (default) | 74.6 s | 3 | stop at 242.2 s | | `99e3ef0e` | 0 | 15.3 s | 29 | running at 300 s | | `c45bf9ab` (before #1408) | 1 | 15.4 s | 29 | running at 300 s | - In the `--suspend-others 0` run, a manual click came at about 190 s; all 29 PSOs were created before it, at 145-147 s. - The stop also happened in four runs with manual input at `24fcd0b5` and `99e3ef0e`, between 189.9 and 215.9 s. - Without input, the application does not advance (0 compute PSOs created) and runs 300 s at six commits in `c45bf9ab..99e3ef0e`. So runs that go past the first confirm need `--suspend-others 0` (#3334); otherwise their timing and outcome reflect the harness.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3333
No description provided.