kernel: lower Windows priority for ASTRO BOT's Havok workers #2022

Open
github-bot wants to merge 4 commits from github-bot/gh-2022 into main AGit
Owner

@⁠Nawid3333 on GitHub · 2026-10-31 13:14 UTC · original
Nawid3333:fix/astro-havok-priority → main · +177 −18 · 4 files · 4 commits · open

Game: ASTRO BOT (PPSA21564). On Windows the game often gets stuck before the first level (a few FPS, long frame stalls) or loads it slowly, then runs at 9-11 FPS with audio dropouts.

Cause. 18 Havok Worker threads are created at guest priority 478, which the Windows mapping turns into host priority +2 (<= 478 -> +2). They spin on a test-and-set lock without yielding. DrawThread (680) and Physics_ATQT (699) run at host 0 and get almost no CPU while the workers spin, so the frame and the level loading wait for them.

Change (Windows only). The host +2 band ends at 460 instead of 478, at thread creation and in PthreadSetprio, so guest 461..478 runs at host 0 like the rest of the 479..732 band. The game's audio threads (guest 256/257) keep +2. PthreadGetPriorityForKernel now takes the class from the guest priority with the existing thresholds (478/733), so the order of priority-ordered semaphores (its only user, semaphore.cpp:221) is the same as before. Linux and macOS are unchanged.

Results on 4919fdb (Windows 11, Ryzen 5 7600X, RX 9070 XT; builds of main and of this branch plus only a lab input-script player that presses the same buttons in every run; runs from boot, each starting with the same copied Vulkan pipeline cache and translating the shaders during the run; read from the performance overlay: "gameplay" = the first reading above 600 draws per frame, the desert level then shows ~730-750):

CPUs for the emulator main this PR
4 0 of 3 reach gameplay: two stay below 600 draws per frame, mostly at 0.5-16 FPS with "No frames" stalls; one stops with the game's assert ODX Definition is not found 3 of 3 reach gameplay, then 30-49 FPS
10 2 of 3 reach gameplay, then 45-57 FPS 2 of 3 reach gameplay, then 46-57 FPS
12 1 of 2 reach gameplay, then 55-60 FPS 2 of 2 reach gameplay, then 49-57 FPS

With 10 or 12 CPUs the two builds are close; the difference shows when the emulator gets 4.

Earlier runs on lab builds of 5e837a9b with profiling counters (4 CPUs, 3 runs each) showed the same: with this change gameplay was reached in less than half the time of main, at 31 vs 9-11 FPS, with 0 vs 872-1244 audio underruns per run. A variant that moved every guest priority <= 732 to host 0 reached gameplay as fast but caused 4052-4716 audio underruns per run, which is why the band starts at 460 (fpPS4 uses the same boundary for its above-normal band).

Tests. pthread_priority_tests checks host priority, kernel class and guest priority for 460, 461, 478, 479, 732 and 733 and for PthreadSetprio; it fails on main at the 461 row and passes with this change. The CI change adds it to the Windows job.

Needs #2010 for the Windows job. Since 026189166 main's Windows build fails in tests/ShaderRecompilerComputeTests.cpp: the test added by #2003 names a lambda near, which the Windows headers define as a macro. #2010 renames it; until it is merged, the Windows job of this PR stops at that file before pthread_priority runs. Locally (on 4919fdb) the branch builds pthread_priority_tests, the test passes, and it fails with the pthread.cpp change reverted.

Related: #1050 changes the same mapping differently (guest 478 -> 0 and 680-700 -> -1, GPU thread highest); in the same ASTRO BOT setup on 4 CPUs it did not reach gameplay in 3 runs. The two PRs overlap; this one keeps the GPU thread as it is.

AI use: the investigation, the code and the tests were done with an AI coding assistant (Claude) and reviewed with other models; I reviewed the change and the measurements and ran the game tests on my PC.

**@⁠Nawid3333** on GitHub · 2026-10-31 13:14 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022) `Nawid3333:fix/astro-havok-priority` → `main` · +177 −18 · 4 files · 4 commits · open **Game:** ASTRO BOT (PPSA21564). On Windows the game often gets stuck before the first level (a few FPS, long frame stalls) or loads it slowly, then runs at 9-11 FPS with audio dropouts. **Cause.** 18 `Havok Worker` threads are created at guest priority 478, which the Windows mapping turns into host priority +2 (`<= 478 -> +2`). They spin on a test-and-set lock without yielding. `DrawThread` (680) and `Physics_ATQT` (699) run at host 0 and get almost no CPU while the workers spin, so the frame and the level loading wait for them. **Change (Windows only).** The host +2 band ends at 460 instead of 478, at thread creation and in `PthreadSetprio`, so guest 461..478 runs at host 0 like the rest of the 479..732 band. The game's audio threads (guest 256/257) keep +2. `PthreadGetPriorityForKernel` now takes the class from the guest priority with the existing thresholds (478/733), so the order of priority-ordered semaphores (its only user, `semaphore.cpp:221`) is the same as before. Linux and macOS are unchanged. **Results on 4919fdb** (Windows 11, Ryzen 5 7600X, RX 9070 XT; builds of main and of this branch plus only a lab input-script player that presses the same buttons in every run; runs from boot, each starting with the same copied Vulkan pipeline cache and translating the shaders during the run; read from the performance overlay: "gameplay" = the first reading above 600 draws per frame, the desert level then shows ~730-750): | CPUs for the emulator | main | this PR | |---|---|---| | 4 | 0 of 3 reach gameplay: two stay below 600 draws per frame, mostly at 0.5-16 FPS with "No frames" stalls; one stops with the game's assert `ODX Definition is not found` | 3 of 3 reach gameplay, then 30-49 FPS | | 10 | 2 of 3 reach gameplay, then 45-57 FPS | 2 of 3 reach gameplay, then 46-57 FPS | | 12 | 1 of 2 reach gameplay, then 55-60 FPS | 2 of 2 reach gameplay, then 49-57 FPS | With 10 or 12 CPUs the two builds are close; the difference shows when the emulator gets 4. Earlier runs on lab builds of 5e837a9b with profiling counters (4 CPUs, 3 runs each) showed the same: with this change gameplay was reached in less than half the time of main, at 31 vs 9-11 FPS, with 0 vs 872-1244 audio underruns per run. A variant that moved every guest priority `<= 732` to host 0 reached gameplay as fast but caused 4052-4716 audio underruns per run, which is why the band starts at 460 (fpPS4 uses the same boundary for its above-normal band). **Tests.** `pthread_priority_tests` checks host priority, kernel class and guest priority for 460, 461, 478, 479, 732 and 733 and for `PthreadSetprio`; it fails on main at the 461 row and passes with this change. The CI change adds it to the Windows job. **Needs #2010 for the Windows job.** Since 026189166 main's Windows build fails in `tests/ShaderRecompilerComputeTests.cpp`: the test added by #2003 names a lambda `near`, which the Windows headers define as a macro. #2010 renames it; until it is merged, the Windows job of this PR stops at that file before `pthread_priority` runs. Locally (on 4919fdb) the branch builds `pthread_priority_tests`, the test passes, and it fails with the `pthread.cpp` change reverted. **Related:** #1050 changes the same mapping differently (guest 478 -> 0 and 680-700 -> -1, GPU thread highest); in the same ASTRO BOT setup on 4 CPUs it did not reach gameplay in 3 runs. The two PRs overlap; this one keeps the GPU thread as it is. **AI use:** the investigation, the code and the tests were done with an AI coding assistant (Claude) and reviewed with other models; I reviewed the change and the measurements and ran the game tests on my PC.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
PthreadSetprio writes it while PthreadGetprio and the priority-ordered semaphore wait read it from other threads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	.github/workflows/build.yml
The priority mapping under test exists only on Windows; Linux and macOS no longer build a full-emulator test that runs no checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:11:51 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-31 13:19 UTC · original · edited 2026-11-01 18:18 UTC

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 1656d89cf2 and 3f5743a99c.

Files selected for processing: 2
  • CMakeLists.txt
  • tests/PthreadPriorityTests.cpp
Files with no reviewable changes: 1
  • tests/PthreadPriorityTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

The Windows pthread priority mapping now uses a lower threshold for mapping guest priorities to host priority +2. Windows kernel priority lookup now returns specific values for missing attributes and specified guest-priority ranges. A new Windows test checks priority values for six workers and changes one worker’s priority. CMake and the Windows build workflow now build and select the test.

Suggested reviewers: nmzik

Change: Bug fix

Merge Risk: Minimal · up to 3f574

The priority changes and Windows test integration are ready to merge with no identified actionable risk.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the main change: lowering Windows priority for ASTRO BOT's Havok workers.
Description check Passed The description explains the Windows priority-mapping change, its motivation, test coverage, reported results, and CI considerations.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 7 functions across 2 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
**@⁠coderabbitai[bot]** on GitHub · 2026-10-31 13:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#issuecomment-6543879359) · edited 2026-11-01 18:18 UTC <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/2022?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=3"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3" alt="Review in Change Stack →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. <details> <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="16" height="16" align="absmiddle" alt=""></picture> Recent review info</strong></summary> <dl> <dd> <!-- review_info_content --> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/893b03552699dc873474023bc1f4c69c57fb36b2/.coderabbit.yaml>) - **Commit**: [893b035](<https://github.com/KytyPS5/KytyPS5/commit/893b03552699dc873474023bc1f4c69c57fb36b2>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `d36694f8-86bd-4af7-ab01-f4e67f7afc61` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 1656d89cf252090310f18d200be62e1f098c39a8 and 3f5743a99c23f8ece9639d59735b00cbcca64c5c. </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 2</strong></summary> <dl> <dd> * `CMakeLists.txt` * `tests/PthreadPriorityTests.cpp` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-no-changes-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-no-changes.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files with no reviewable changes: 1</strong></summary> <dl> <dd> * tests/PthreadPriorityTests.cpp </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> The Windows pthread priority mapping now uses a lower threshold for mapping guest priorities to host priority `+2`. Windows kernel priority lookup now returns specific values for missing attributes and specified guest-priority ranges. A new Windows test checks priority values for six workers and changes one worker’s priority. CMake and the Windows build workflow now build and select the test. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"3f5743a99c23f8ece9639d59735b00cbcca64c5c" --> <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} --> **Change:** Bug fix <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>3f574</code></summary> <dl> <dd> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `3f574` --> <!-- final_review_risk_coverage:{"sourceCommitId":"3f5743a99c23f8ece9639d59735b00cbcca64c5c","coveredCommitId":"3f5743a99c23f8ece9639d59735b00cbcca64c5c","kind":"reviewed"} --> The priority changes and Windows test integration are ready to merge with no identified actionable risk. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4 · <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> 1</strong></summary> <dl> <dd> <strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> Failed checks: 1 warning</strong> | Check name | Status | Explanation | Resolution | | :---------------- | :----------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ![Warning](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-warning.svg) | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary><strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> Passed checks: 4 passed</strong></summary> <dl> <dd> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------ | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title clearly summarizes the main change: lowering Windows priority for ASTRO BOT's Havok workers. | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description explains the Windows priority-mapping change, its motivation, test coverage, reported results, and CI considerations. | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | </dd> </dl> </details> <details> <summary><strong>Full details: Docstring Coverage</strong></summary> <dl> <dd> **Explanation** Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 7 functions across 2 files. (1 skipped: 1 unsupported.) **Resolution** Write docstrings for the functions missing them to satisfy the coverage threshold. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=2022)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <!-- tips_end -->
@ -3194,0 +3195,4 @@
if (thread->attr == nullptr) {
return 700;
}
if (thread->attr->guest_priority >= 733) {
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-31 13:19 UTC · original · edited 2026-10-31 13:37 UTC

Minor · Stability & Availability · Quick win

Synchronize the guest-priority read.

If one thread calls PthreadSetprio for a running thread while that thread enters a priority-ordered semaphore wait, this read can overlap the write to thread->attr->guest_priority at Line 3559. The new Windows path has a C++ data race and can assign the waiter the wrong priority class. Make guest_priority atomic across its reads and writes, or protect those accesses with a shared lock. The semaphore records this result when it adds the waiter. (raw.githubusercontent.com)

✅ Addressed in commit 38d444e

**@⁠coderabbitai[bot]** on GitHub · 2026-10-31 13:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#discussion_r4431831870) · edited 2026-10-31 13:37 UTC <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor** · **Stability & Availability** · **Quick win** **Synchronize the guest-priority read.** If one thread calls `PthreadSetprio` for a running thread while that thread enters a priority-ordered semaphore wait, this read can overlap the write to `thread->attr->guest_priority` at Line 3559. The new Windows path has a C++ data race and can assign the waiter the wrong priority class. Make `guest_priority` atomic across its reads and writes, or protect those accesses with a shared lock. The semaphore records this result when it adds the waiter. ([raw.githubusercontent.com](https://raw.githubusercontent.com/KytyPS5/KytyPS5/f06a764a0a0c7325ff2f5bd3d093adcc03f79c5e/src/kernel/semaphore.cpp)) <!-- fingerprinting:phantom:poseidon:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:7d9971785a1a8a327d5260c9 --> <!-- This is an auto-generated reply by CodeRabbit --> ✅ Addressed in commit 38d444e
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-31 13:19 UTC · original · reviewed

Actionable comments posted: 1


Review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 026189166f and f06a764a0a.

Files selected for processing: 4
  • .github/workflows/build.yml
  • CMakeLists.txt
  • src/kernel/pthread.cpp
  • tests/PthreadPriorityTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-31 13:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#pullrequestreview-5722865578) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** --- <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="16" height="16" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/026189166f71cc1995f5851dee1ddad7d5826e99/.coderabbit.yaml>) - **Commit**: [0261891](<https://github.com/KytyPS5/KytyPS5/commit/026189166f71cc1995f5851dee1ddad7d5826e99>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `32f8e892-a305-4163-ac6f-723ca5e79cb8` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 026189166f71cc1995f5851dee1ddad7d5826e99 and f06a764a0a0c7325ff2f5bd3d093adcc03f79c5e. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 4</summary> <dl> <dd> * `.github/workflows/build.yml` * `CMakeLists.txt` * `src/kernel/pthread.cpp` * `tests/PthreadPriorityTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=fc6d02f2-7b71-4c96-88e6-7e9796d95689 attempt=cc219b42-f58e-419e-a12d-ac38c1abfa7d batch=1/1 -->
@ -3194,0 +3195,4 @@
if (thread->attr == nullptr) {
return 700;
}
if (thread->attr->guest_priority >= 733) {
Author
Owner

@⁠Nawid3333 on GitHub · 2026-10-31 13:29 UTC · original

Fixed in 38d444e0: guest_priority is now std::atomic<int>, so PthreadSetprio, PthreadGetprio, PthreadAttrGetschedparam and PthreadGetPriorityForKernel no longer race on it. PthreadGetprio on main already read it from other threads without synchronization; the semaphore path added a second reader.

**@⁠Nawid3333** on GitHub · 2026-10-31 13:29 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#discussion_r4431858412) Fixed in 38d444e0: `guest_priority` is now `std::atomic<int>`, so `PthreadSetprio`, `PthreadGetprio`, `PthreadAttrGetschedparam` and `PthreadGetPriorityForKernel` no longer race on it. `PthreadGetprio` on main already read it from other threads without synchronization; the semaphore path added a second reader.
@ -3194,0 +3195,4 @@
if (thread->attr == nullptr) {
return 700;
}
if (thread->attr->guest_priority >= 733) {
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-31 13:38 UTC · original

@⁠Nawid3333 The supplied code confirms that guest_priority is now std::atomic<int>. The listed readers and writers use atomic operations, which addresses this data-race finding. The change also covers the existing PthreadGetprio read path.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

Review thread resolved.

You are interacting with an AI system.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-31 13:38 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#discussion_r4431881314) <!-- coderabbit-ai-generated:v1 --> @⁠Nawid3333 The supplied code confirms that `guest_priority` is now `std::atomic<int>`. The listed readers and writers use atomic operations, which addresses this data-race finding. The change also covers the existing `PthreadGetprio` read path. --- <!-- This is an auto-generated comment: tweet message by coderabbit.ai --> If you found this review helpful, would you consider giving us a shout-out on [X](https://twitter.com/intent/tweet?related=CodeRabbitAI&text=A%20priority-ordered%20semaphore%20could%20race%20with%20priority%20updates%20and%20assign%20the%20wrong%20waiter%20class.%20%40coderabbitai%20caught%20it%3B%20making%20%60guest_priority%60%20atomic%20fixes%20the%20issue.%20Try%20it%20for%20sharper%20code%20reviews%20%F0%9F%90%87&url=https%3A%2F%2Fgithub.com%2FKytyPS5%2FKytyPS5%2Fpull%2F2022%23discussion_r4431831870)? Thank you for using CodeRabbit! <!-- end of auto-generated comment: tweet message by coderabbit.ai --> Review thread resolved. <sub><i>You are interacting with an AI system.</i></sub> <!-- This is an auto-generated reply by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-01 16:47 UTC · original · edited 2026-11-01 18:18 UTC
On CMakeLists.txt line 600 (outdated):

@@ -596,6 +596,9 @@ add_kyty_full_emulator_test(kernel_file_system_tests
 	"${KYTY_TESTS_DIR}/KernelFileSystemTests.cpp")
 target_link_libraries(kernel_file_system_tests ZArchive::zarchive)
 
+add_kyty_full_emulator_test(pthread_priority_tests
+	"${KYTY_TESTS_DIR}/PthreadPriorityTests.cpp")

Minor · Performance & Scalability · Quick win

Restrict this target to Windows.

On Linux and macOS, the test returns without running assertions, but kyty_tests still builds a full-emulator executable for it. Guard the target, test registration, and aggregate dependency with WIN32 to avoid that build cost. (raw.githubusercontent.com)

✅ Addressed in commit 3f5743a

**@⁠coderabbitai[bot]** on GitHub · 2026-11-01 16:47 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#discussion_r4436493959) · edited 2026-11-01 18:18 UTC On `CMakeLists.txt` line 600 (outdated): ```diff @@ -596,6 +596,9 @@ add_kyty_full_emulator_test(kernel_file_system_tests "${KYTY_TESTS_DIR}/KernelFileSystemTests.cpp") target_link_libraries(kernel_file_system_tests ZArchive::zarchive) +add_kyty_full_emulator_test(pthread_priority_tests + "${KYTY_TESTS_DIR}/PthreadPriorityTests.cpp") ``` <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor** · **Performance & Scalability** · **Quick win** **Restrict this target to Windows.** On Linux and macOS, the test returns without running assertions, but `kyty_tests` still builds a full-emulator executable for it. Guard the target, test registration, and aggregate dependency with `WIN32` to avoid that build cost. ([raw.githubusercontent.com](https://raw.githubusercontent.com/KytyPS5/KytyPS5/1656d89cf252090310f18d200be62e1f098c39a8/tests/PthreadPriorityTests.cpp)) <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:4e2eaa3c82cd0df28001d35e --> <!-- This is an auto-generated reply by CodeRabbit --> ✅ Addressed in commit 3f5743a
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-01 16:47 UTC · original · reviewed

Actionable comments posted: 1


Review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 38d444e0ce and 1656d89cf2.

Files selected for processing: 3
  • .github/workflows/build.yml
  • CMakeLists.txt
  • src/kernel/pthread.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-01 16:47 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#pullrequestreview-5729186345) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** --- <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="16" height="16" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/893b03552699dc873474023bc1f4c69c57fb36b2/.coderabbit.yaml>) - **Commit**: [893b035](<https://github.com/KytyPS5/KytyPS5/commit/893b03552699dc873474023bc1f4c69c57fb36b2>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `b2de7bd9-5373-4f1a-8ee1-df3466d752d0` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 38d444e0cea17d0b41b03a8e2d866c7ddca3e095 and 1656d89cf252090310f18d200be62e1f098c39a8. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 3</summary> <dl> <dd> * `.github/workflows/build.yml` * `CMakeLists.txt` * `src/kernel/pthread.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=9db4a8a1-9c1d-45e7-a39a-a02ea75a7ebb attempt=46443829-26fd-4f97-be68-6021fbc6531a batch=1/1 -->
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-01 18:11 UTC · original
On CMakeLists.txt line 600 (outdated):

@@ -596,6 +596,9 @@ add_kyty_full_emulator_test(kernel_file_system_tests
 	"${KYTY_TESTS_DIR}/KernelFileSystemTests.cpp")
 target_link_libraries(kernel_file_system_tests ZArchive::zarchive)
 
+add_kyty_full_emulator_test(pthread_priority_tests
+	"${KYTY_TESTS_DIR}/PthreadPriorityTests.cpp")

Done in 3f5743a99: pthread_priority_tests is now created, registered with ctest and added to kyty_tests only inside if(WIN32), the same way macos_sse4a_tests is limited to macOS. The Windows-only guards inside the test went away with it.

**@⁠Nawid3333** on GitHub · 2026-11-01 18:11 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#discussion_r4436776569) On `CMakeLists.txt` line 600 (outdated): ```diff @@ -596,6 +596,9 @@ add_kyty_full_emulator_test(kernel_file_system_tests "${KYTY_TESTS_DIR}/KernelFileSystemTests.cpp") target_link_libraries(kernel_file_system_tests ZArchive::zarchive) +add_kyty_full_emulator_test(pthread_priority_tests + "${KYTY_TESTS_DIR}/PthreadPriorityTests.cpp") ``` Done in 3f5743a99: `pthread_priority_tests` is now created, registered with ctest and added to `kyty_tests` only inside `if(WIN32)`, the same way `macos_sse4a_tests` is limited to macOS. The Windows-only guards inside the test went away with it.
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-01 18:19 UTC · original
On CMakeLists.txt line 600 (outdated):

@@ -596,6 +596,9 @@ add_kyty_full_emulator_test(kernel_file_system_tests
 	"${KYTY_TESTS_DIR}/KernelFileSystemTests.cpp")
 target_link_libraries(kernel_file_system_tests ZArchive::zarchive)
 
+add_kyty_full_emulator_test(pthread_priority_tests
+	"${KYTY_TESTS_DIR}/PthreadPriorityTests.cpp")

@⁠Nawid3333 Thanks. The supplied CMakeLists.txt confirms that all three operations are inside if(WIN32). This addresses the unnecessary Linux and macOS build cost.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

Review thread resolved.

You are interacting with an AI system.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-01 18:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#discussion_r4436800865) On `CMakeLists.txt` line 600 (outdated): ```diff @@ -596,6 +596,9 @@ add_kyty_full_emulator_test(kernel_file_system_tests "${KYTY_TESTS_DIR}/KernelFileSystemTests.cpp") target_link_libraries(kernel_file_system_tests ZArchive::zarchive) +add_kyty_full_emulator_test(pthread_priority_tests + "${KYTY_TESTS_DIR}/PthreadPriorityTests.cpp") ``` <!-- coderabbit-ai-generated:v1 --> @⁠Nawid3333 Thanks. The supplied `CMakeLists.txt` confirms that all three operations are inside `if(WIN32)`. This addresses the unnecessary Linux and macOS build cost. --- <!-- This is an auto-generated comment: tweet message by coderabbit.ai --> If you found this review helpful, would you consider giving us a shout-out on [X](https://twitter.com/intent/tweet?related=CodeRabbitAI&text=Guarding%20%60pthread_priority_tests%60%20with%20%60WIN32%60%20avoids%20building%20a%20full%20emulator%20for%20a%20test%20that%20does%20nothing%20on%20Linux%20and%20macOS.%20Try%20%40coderabbitai%20for%20practical%20performance%20wins%20%E2%9A%A1&url=https%3A%2F%2Fgithub.com%2FKytyPS5%2FKytyPS5%2Fpull%2F2022%23discussion_r4436493959)? Thank you for using CodeRabbit! <!-- end of auto-generated comment: tweet message by coderabbit.ai --> Review thread resolved. <sub><i>You are interacting with an AI system.</i></sub> <!-- This is an auto-generated reply by CodeRabbit -->
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-05 15:03 UTC · original

New runs on a newer main (91c5820c0) with 8 CPUs for the emulator: main shows a periodic frame stall in ASTRO BOT that this PR removes.

Setup. Windows 11, Ryzen 5 7600X, RX 9070 XT, 8 CPUs for the emulator. Two builds of main 91c5820c0 (built from my fork's main, which adds only .github workflow files): main, and main plus this PR's diff (head 3f5743a99, applied unchanged). Both builds also carry three lab-only additions that are not part of the PR:

  • the input-script player, which presses the same buttons in every run;
  • a frame-time counter that prints one reading per window of frames (FPS, median and longest frame, draws per frame);
  • a counter of the time spent waiting for flips.

Every run starts from boot with the shader store of a warm-up run of its own build. The main runs also loaded the Vulkan pipeline cache file of their warm-up; the PR runs started with an empty one, which favors main. The first 12 readings of each run are skipped.

main 91c5820c0 main + this PR
runs 9 4
readings with a frame longer than 2000 ms every reading (29-35 per run) 0 of 38 per run
longest frame of those readings, median per run 5355-5707 ms -
median frame time 16.7 ms 16.7 ms
FPS, median of the readings per run 2.2-8.5 49.9-51.4
desert level (700-790 draws per frame) reached in 7 of 9 runs, 4.5-7.7 FPS there reached in 4 of 4 runs, 49.8-51.1 FPS there

So on main, frames come at the normal 16.7 ms pace, but the longest frame of every reading is 5355-5707 ms (median per run). These long frames alone take 43-46% of the measured time. With this PR they are gone, and the same scene runs at about 50 FPS.

Caveat: 2 further runs of the PR build stopped early (not in the table). Both hit the game's own assert Room.cpp:787 ODX Definition is not found (opening_next_shooting_star_single and skybox_blank_desert_intro), followed by a guest access violation. In both, the log first shows Read 0 bytes for that .odxb file, which exists and is not empty.

The zero-byte reads are not caused by this PR:

  • they happen in runs of both builds (1-16 per run);
  • main has stopped with the same assert before (see the 4-CPU row in the description).

The read lands in a guest page that the GPU cache has write-protected, so Windows ReadFile fails (ERROR_NOACCESS or ERROR_INVALID_USER_BUFFER) and the guest gets 0 bytes. The crash needs that lost read to be an .odxb definition. #838 addressed this (closed unmerged), and #1165 addresses it for Linux.

**@⁠Nawid3333** on GitHub · 2026-11-05 15:03 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#issuecomment-6661347820) New runs on a newer main (91c5820c0) with 8 CPUs for the emulator: main shows a periodic frame stall in ASTRO BOT that this PR removes. **Setup.** Windows 11, Ryzen 5 7600X, RX 9070 XT, 8 CPUs for the emulator. Two builds of main 91c5820c0 (built from my fork's main, which adds only `.github` workflow files): main, and main plus this PR's diff (head 3f5743a99, applied unchanged). Both builds also carry three lab-only additions that are not part of the PR: - the input-script player, which presses the same buttons in every run; - a frame-time counter that prints one reading per window of frames (FPS, median and longest frame, draws per frame); - a counter of the time spent waiting for flips. Every run starts from boot with the shader store of a warm-up run of its own build. The main runs also loaded the Vulkan pipeline cache file of their warm-up; the PR runs started with an empty one, which favors main. The first 12 readings of each run are skipped. | | main 91c5820c0 | main + this PR | |---|---|---| | runs | 9 | 4 | | readings with a frame longer than 2000 ms | every reading (29-35 per run) | 0 of 38 per run | | longest frame of those readings, median per run | 5355-5707 ms | - | | median frame time | 16.7 ms | 16.7 ms | | FPS, median of the readings per run | 2.2-8.5 | 49.9-51.4 | | desert level (700-790 draws per frame) | reached in 7 of 9 runs, 4.5-7.7 FPS there | reached in 4 of 4 runs, 49.8-51.1 FPS there | So on main, frames come at the normal 16.7 ms pace, but the longest frame of every reading is 5355-5707 ms (median per run). These long frames alone take 43-46% of the measured time. With this PR they are gone, and the same scene runs at about 50 FPS. **Caveat: 2 further runs of the PR build stopped early (not in the table).** Both hit the game's own assert `Room.cpp:787 ODX Definition is not found` (`opening_next_shooting_star_single` and `skybox_blank_desert_intro`), followed by a guest access violation. In both, the log first shows `Read 0 bytes` for that `.odxb` file, which exists and is not empty. The zero-byte reads are not caused by this PR: - they happen in runs of both builds (1-16 per run); - main has stopped with the same assert before (see the 4-CPU row in the description). The read lands in a guest page that the GPU cache has write-protected, so Windows `ReadFile` fails (ERROR_NOACCESS or ERROR_INVALID_USER_BUFFER) and the guest gets 0 bytes. The crash needs that lost read to be an `.odxb` definition. #838 addressed this (closed unmerged), and #1165 addresses it for Linux.
Author
Owner

@⁠ZrDaniel07 on GitHub · 2026-11-14 22:16 UTC · original

A/B on 12 cores / 24 threads, for your table. Setup: Windows 11, Ryzen 9 5900X (no CPU affinity limit), RTX 5090 (driver 621.24), 2560x1440, ASTRO BOT PPSA21564, same save.

Builds:

  • A: main 3e226bff + #2172 + a port of #838.
  • B: A + this PR.

Both builds also log one line per second from the performance overlay's refresh (a local lab patch). Each run was the first on its build, with an empty shader cache, so both compiled shaders in the same way. The game was played by hand through the Garden level (aerial_garden).

From the Garden start A (without) B (with)
Seconds logged 571 442
FPS, median / mean / 10th percentile 17.7 / 19.8 / 10.2 16.2 / 18.2 / 9.4
Worst frame per second, median 67 ms 68 ms
Seconds with a frame over 500 ms / over 1 s 4 / 2 1 / 1
Longest frame 3619 ms 3717 ms
CPU waiting on GPU, median 920 ms/s 917 ms/s
Emulator CPU, median 18% 17%
Audio underruns 0 0

There is no measurable difference here. The run is GPU-side bound: the CPU waits on the GPU for about 920 ms of every second, and the emulator uses under 20% of 24 threads. That matches your 10 and 12 CPU rows, where main and this PR are close. I did not test with fewer CPUs.

AI use: Claude Code built both variants, added the log line and summarized the logs with me; I played both runs.

**@⁠ZrDaniel07** on GitHub · 2026-11-14 22:16 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2022#issuecomment-6885053358) A/B on 12 cores / 24 threads, for your table. Setup: Windows 11, Ryzen 9 5900X (no CPU affinity limit), RTX 5090 (driver 621.24), 2560x1440, ASTRO BOT PPSA21564, same save. Builds: - A: `main` `3e226bff` + #2172 + a port of #838. - B: A + this PR. Both builds also log one line per second from the performance overlay's refresh (a local lab patch). Each run was the first on its build, with an empty shader cache, so both compiled shaders in the same way. The game was played by hand through the Garden level (`aerial_garden`). | From the Garden start | A (without) | B (with) | |---|---|---| | Seconds logged | 571 | 442 | | FPS, median / mean / 10th percentile | 17.7 / 19.8 / 10.2 | 16.2 / 18.2 / 9.4 | | Worst frame per second, median | 67 ms | 68 ms | | Seconds with a frame over 500 ms / over 1 s | 4 / 2 | 1 / 1 | | Longest frame | 3619 ms | 3717 ms | | CPU waiting on GPU, median | 920 ms/s | 917 ms/s | | Emulator CPU, median | 18% | 17% | | Audio underruns | 0 | 0 | There is no measurable difference here. The run is GPU-side bound: the CPU waits on the GPU for about 920 ms of every second, and the emulator uses under 20% of 24 threads. That matches your 10 and 12 CPU rows, where main and this PR are close. I did not test with fewer CPUs. AI use: Claude Code built both variants, added the log line and summarized the logs with me; I played both runs.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2022/head:github-bot/gh-2022'
git switch 'github-bot/gh-2022'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2022'
git switch 'github-bot/gh-2022'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2022'
git switch 'github-bot/gh-2022'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2022'
git switch 'main'
git merge --squash 'github-bot/gh-2022'
git switch 'main'
git merge --ff-only 'github-bot/gh-2022'
git switch 'main'
git merge 'github-bot/gh-2022'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.