Build the launcher on Qt below 6.6 and cap the reference-clock log #653

Manually merged
github merged 3 commits from gh-pr/653/head into gh-pr/653/base 2026-11-26 09:28:08 +00:00
Owner

@⁠YuhiAida on GitHub · 2026-09-16 22:47 UTC · original
YuhiAida:chore/launcher-qt-and-clock-log → main · +7 −3 · 2 files · 3 commits · merged 2026-09-17 06:30 UTC

Two small, independent fixes. Each commit is self-contained and one file wide, so either can be taken or dropped on its own.

1. Build the launcher on Qt versions below 6.6

QVulkanInstance::NoPortabilityDrivers only exists from Qt 6.6. With Qt 6.4/6.5 the launcher target does not compile:

src/launcher/src/configurationEditDialog.cpp:217:37: error: no member named 'NoPortabilityDrivers' in 'QVulkanInstance'

The flag is only needed on 6.6+, so it is now guarded. Verified on Qt 6.4.2: launcher and kyty_emulator build.

2. Stop logging every reference-clock copy

CommandProcessor::WriteReferenceClock is called on every GPU wait and logged unconditionally, so the log grows by a line per wait for the whole run (thousands of lines per boot; measured 1312 and 5580 in two runs of the same title). The line content never changes in a way that matters once the address/size are known.

It now logs the first 64 lines per process and stays silent afterwards. The copy itself is unchanged.

Measured with the same build, the same title and the same run length - identical stop point and exit code on both sides, the cap being the only difference between the two runs:

before after
copy_data reference clock lines 5580 64

A second pair of runs on the same two trees: 1312 -> 64. The count before the cap tracks run length; the 64 afterwards is the constant. In runs that end before 64 waits, nothing is dropped (measured 10 lines).

Verification

  • kyty_emulator and launcher both build on this branch (Qt 6.4.2; the launcher fix of commit 1 is what makes the second target possible).
  • SpongeBob PPSA26893 and Dragon Quest VII PPSA17942 were run on these two trees before and after: same stop point, same exit code, no new messages (DQ VII issues no reference-clock copies at all). The change is a log statement, a compile-time guard, and nothing else.

Summary by CodeRabbit

  • Bug Fixes
    • Improved graphics initialization compatibility for Apple platforms and systems using older Qt versions.
    • Reduced excessive diagnostic logging during graphics operations by limiting repeated reference-clock messages, helping keep logs more manageable without changing graphics behavior or validation.
    • Preserved existing graphics processing and memory-copy behavior while improving compatibility across supported platform and Qt combinations.
**@⁠YuhiAida** on GitHub · 2026-09-16 22:47 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/653) `YuhiAida:chore/launcher-qt-and-clock-log` → `main` · +7 −3 · 2 files · 3 commits · merged 2026-09-17 06:30 UTC Two small, independent fixes. Each commit is self-contained and one file wide, so either can be taken or dropped on its own. ## 1. Build the launcher on Qt versions below 6.6 `QVulkanInstance::NoPortabilityDrivers` only exists from Qt 6.6. With Qt 6.4/6.5 the `launcher` target does not compile: ``` src/launcher/src/configurationEditDialog.cpp:217:37: error: no member named 'NoPortabilityDrivers' in 'QVulkanInstance' ``` The flag is only needed on 6.6+, so it is now guarded. Verified on Qt 6.4.2: `launcher` and `kyty_emulator` build. ## 2. Stop logging every reference-clock copy `CommandProcessor::WriteReferenceClock` is called on every GPU wait and logged unconditionally, so the log grows by a line per wait for the whole run (thousands of lines per boot; measured 1312 and 5580 in two runs of the same title). The line content never changes in a way that matters once the address/size are known. It now logs the first 64 lines per process and stays silent afterwards. The copy itself is unchanged. Measured with the same build, the same title and the same run length - identical stop point and exit code on both sides, the cap being the only difference between the two runs: | | before | after | | --- | --- | --- | | `copy_data reference clock` lines | 5580 | 64 | A second pair of runs on the same two trees: 1312 -> 64. The count before the cap tracks run length; the 64 afterwards is the constant. In runs that end before 64 waits, nothing is dropped (measured 10 lines). ## Verification - `kyty_emulator` and `launcher` both build on this branch (Qt 6.4.2; the launcher fix of commit 1 is what makes the second target possible). - SpongeBob PPSA26893 and Dragon Quest VII PPSA17942 were run on these two trees before and after: same stop point, same exit code, no new messages (DQ VII issues no reference-clock copies at all). The change is a log statement, a compile-time guard, and nothing else. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved graphics initialization compatibility for Apple platforms and systems using older Qt versions. - Reduced excessive diagnostic logging during graphics operations by limiting repeated reference-clock messages, helping keep logs more manageable without changing graphics behavior or validation. - Preserved existing graphics processing and memory-copy behavior while improving compatibility across supported platform and Qt combinations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
QVulkanInstance::NoPortabilityDrivers is only available since Qt 6.6, so
guard its use the same way as the Apple-specific case.

Co-authored-by: Copilot <[email protected]>
CopyData of the clock counter runs on every GPU wait, so the handler wrote
one line per wait: a single SpongeBob boot that never reaches a frame logs
1312 of them, and the count grows with run time. Keep the first 64 lines
for diagnostics; the copy itself is unchanged.

Co-authored-by: Copilot <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:28:08 +00:00
github manually merged commit 414c83a40b into gh-pr/653/base 2026-11-26 09:28:08 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-16 22:47 UTC · original · edited 2026-09-17 06:33 UTC

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 81d8cef3-3c06-4b88-867a-4b6301e192e6

📥 Commits

Reviewing files that changed from the base of the PR and between dbba6363d1 and 414c83a40b.

📒 Files selected for processing (1)
  • src/graphics/guest_gpu/graphicsRun.cpp
💤 Files with no reviewable changes (1)
  • src/graphics/guest_gpu/graphicsRun.cpp

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


📝 Walkthrough

Walkthrough

The change limits reference-clock logging to the first 64 calls per process. It also restricts NoPortabilityDrivers to non-Apple builds using Qt 6.6 or newer.

Changes

Reference-clock logging

Layer / File(s) Summary
Reference-clock log limit
src/graphics/guest_gpu/graphicsRun.cpp
An atomic counter limits logging to the first 64 calls. Validation and memory-copy behavior remain unchanged.

Vulkan flag compatibility

Layer / File(s) Summary
Portability-driver flag condition
src/launcher/src/configurationEditDialog.cpp
NoPortabilityDrivers is set only on non-Apple builds with Qt 6.6 or newer.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 414c8

The compatibility guard and logging limit preserve the affected runtime behavior while avoiding unsupported Qt API use and excess reference-clock logs. No actionable merge risk was identified.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ 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. Analyzed 3 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes both independent changes: Qt versions below 6.6 are supported for the launcher, and reference-clock logging is capped.
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-16 22:47 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/653#issuecomment-5705642925) · edited 2026-09-17 06:33 UTC <!-- 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/653#gh-light-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg" alt="Review Change Stack" width="202" height="32"></a><a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/653#gh-dark-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg" alt="Review Change Stack" width="202" height="32"></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: defaults **Review profile**: CHILL **Plan**: Advanced **Run ID**: `81d8cef3-3c06-4b88-867a-4b6301e192e6` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between dbba6363d121d0ca806670a9396e1da015bde453 and 414c83a40bb9debec7857d1e7ce66a4050db433b. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `src/graphics/guest_gpu/graphicsRun.cpp` </details> <details> <summary>💤 Files with no reviewable changes (1)</summary> * src/graphics/guest_gpu/graphicsRun.cpp </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 9 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The change limits reference-clock logging to the first 64 calls per process. It also restricts `NoPortabilityDrivers` to non-Apple builds using Qt 6.6 or newer. ### Changes **Reference-clock logging** |Layer / File(s)|Summary| |---|---| |**Reference-clock log limit** <br> `src/graphics/guest_gpu/graphicsRun.cpp`|An atomic counter limits logging to the first 64 calls. Validation and memory-copy behavior remain unchanged.| **Vulkan flag compatibility** |Layer / File(s)|Summary| |---|---| |**Portability-driver flag condition** <br> `src/launcher/src/configurationEditDialog.cpp`|`NoPortabilityDrivers` is set only on non-Apple builds with Qt 6.6 or newer.| <!-- change_assessment_start --> **Priority:** ⬇️ Low **Estimated code review effort:** 2 (Simple) | ~8 minutes <!-- change_assessment_commit:"414c83a40bb9debec7857d1e7ce66a4050db433b" --> **Change:** Bug fix <!-- change_assessment_end --> </details> <!-- walkthrough_end --> <!-- final_review_risk_start --> **Merge Risk:** _⚪ Minimal_ · up to `414c8` <!-- final_review_risk_coverage:{"sourceCommitId":"414c83a40bb9debec7857d1e7ce66a4050db433b","coveredCommitId":"414c83a40bb9debec7857d1e7ce66a4050db433b","kind":"reviewed"} --> The compatibility guard and logging limit preserve the affected runtime behavior while avoiding unsupported Qt API use and excess reference-clock logs. No actionable merge risk was identified. <!-- final_review_risk_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary> ### ❌ 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. Analyzed 3 functions across 2 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- | | Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. | | Title check | ✅ Passed | The title accurately summarizes both independent changes: Qt versions below 6.6 are supported for the launcher, and reference-clock logging is capped. | | 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. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> - [ ] <!-- {"checkboxId":"585bb3f6-faf5-4dbf-96d2-74e382adf19a"} --> Fix all pre-merge checks with AI <!-- finishing_touch_checkbox_start --> <details> <summary>✨ Finishing Touches</summary> <details> <summary>🧪 Generate unit tests (beta)</summary> - [ ] <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create PR with unit tests </details> </details> <!-- finishing_touch_checkbox_end --> <!-- tips_start --> --- <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.