docs: show how to prime the Windows pixel core fixture cache #2553

Merged
RavenCurseBurg merged 1 commit from upstream-pr/2561 into main 2026-11-25 21:07:42 +00:00
RavenCurseBurg commented 2026-11-25 21:03:43 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T21:03:43Z.


Part of #448. This adds a short PowerShell recipe next to the draw-core CTest instructions. It primes the Python bytecode cache used by the existing Windows fixture. The fixture runs with -B, so it can read the cache on later runs.

The original pixel_aot_hardware CTest at 82bb67ef reached its 60-second timeout in six of eight earlier runs. On the same Intel UHD 770 and RTX 4060, all six runs after priming completed in 25.68–27.77 seconds. Their coverage records were byte-identical to both previous completed runs. The initial import took 5.75 seconds once. On newer main, a separate twelve-run device-free comparison exercised both cache states and worker counts. Hardware, individual times, coverage digests and reproduction.

I also ran the documented import from the repository root with a fresh default virtual environment. tests/docs_links_check.py passed 486 links, tests/bidi_controls_check.py passed 1,790 files, and git diff --check passed.

AI-assisted with Codex (GPT-6.2 Astra, xhigh).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6613711773 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2561). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T21:03:43Z. --- Part of #448. This adds a short PowerShell recipe next to the draw-core CTest instructions. It primes the Python bytecode cache used by the existing Windows fixture. The fixture runs with `-B`, so it can read the cache on later runs. The original `pixel_aot_hardware` CTest at `82bb67ef` reached its 60-second timeout in six of eight earlier runs. On the same Intel UHD 770 and RTX 4060, all six runs after priming completed in 25.68–27.77 seconds. Their coverage records were byte-identical to both previous completed runs. The initial import took 5.75 seconds once. On newer main, a separate twelve-run device-free comparison exercised both cache states and worker counts. [Hardware, individual times, coverage digests and reproduction](https://github.com/R0Y00/Xbox2Windows/issues/448#issuecomment-7174505456). I also ran the documented import from the repository root with a fresh default virtual environment. `tests/docs_links_check.py` passed 486 links, `tests/bidi_controls_check.py` passed 1,790 files, and `git diff --check` passed. AI-assisted with Codex (GPT-6.2 Astra, xhigh).
upstream-sync closed this pull request 2026-11-25 22:02:05 +00:00
tedin7 commented 2026-11-25 22:02:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:06:33Z.

Review: COMMENTED


Review of head 1505aff2 (docs-only, docs/experiments.md, +18 lines).

What I checked:

  • The recipe matches the build files: CMakeLists.txt sets INTAKE_PYTHON to out/pe-env/Scripts/python.exe by default, the fixture runs pixel_aot_check.py with -B, and the dev preset exists.
  • pixel_aot_check is importable from tests/ as the snippet assumes.
  • No sibling doc repeats this recipe, so nothing else needs the same change.
  • The numbers (six of eight timeouts, 25.68-27.77 s after priming, 5.75 s import) match the linked #448 comment. The text says this is not physical-adapter headroom proof elsewhere, and keeps that caveat.

Commands run locally on the exact head:

  • python3 tests/docs_links_check.py -> pass (19 files, 486 links)
  • python3 tests/bidi_controls_check.py -> pass
  • git diff --check origin/main...HEAD -> clean

No runtime behavior changes, so no Windows run is needed. Sound from my side. One CI job (gfx1013 fixtures) was still pending when I looked.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6064985900 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2561#pullrequestreview-6064985900). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T21:06:33Z. **Review:** COMMENTED --- Review of head 1505aff2 (docs-only, `docs/experiments.md`, +18 lines). What I checked: - The recipe matches the build files: `CMakeLists.txt` sets `INTAKE_PYTHON` to `out/pe-env/Scripts/python.exe` by default, the fixture runs `pixel_aot_check.py` with `-B`, and the `dev` preset exists. - `pixel_aot_check` is importable from `tests/` as the snippet assumes. - No sibling doc repeats this recipe, so nothing else needs the same change. - The numbers (six of eight timeouts, 25.68-27.77 s after priming, 5.75 s import) match the linked #448 comment. The text says this is not physical-adapter headroom proof elsewhere, and keeps that caveat. Commands run locally on the exact head: - `python3 tests/docs_links_check.py` -> pass (19 files, 486 links) - `python3 tests/bidi_controls_check.py` -> pass - `git diff --check origin/main...HEAD` -> clean No runtime behavior changes, so no Windows run is needed. Sound from my side. One CI job (gfx1013 fixtures) was still pending when I looked. AI-assisted; commands listed were executed locally.
Sign in to join this conversation.
No reviewers
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!2553
No description provided.