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

Closed
opened 2026-11-28 10:05:42 +00:00 by lukaslw-lab · 1 comment
lukaslw-lab commented 2026-11-28 10:05:42 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-28T10:05:42Z.


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

#3332 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6663120166 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3331). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-28T10:05:42Z. --- 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 | #3332 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.
Leyukaka commented 2026-11-28 14:41:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T14:41:59Z.


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 (#3332); otherwise their timing and outcome reflect the harness.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7240864647 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3331#issuecomment-7240864647). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T14:41:59Z. --- 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` (#3332); otherwise their timing and outcome reflect the harness.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#3331
No description provided.