Perf profiling v2 #2306

Closed
github-bot wants to merge 6 commits from gh-pr/2306/head into gh-pr/2306/base
Owner

@⁠RubyUwU56 on GitHub · 2026-11-16 21:32 UTC · original
RubyUwU56:perf-profiling-v2 → main · +311 −170 · 8 files · 6 commits · closed without merging

No description provided.

**@⁠RubyUwU56** on GitHub · 2026-11-16 21:32 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2306) `RubyUwU56:perf-profiling-v2` → `main` · +311 −170 · 8 files · 6 commits · closed without merging *No description provided.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:18:28 +00:00
github-bot closed this pull request 2026-11-26 10:18:28 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-16 21:39 UTC · original

Explain Change →

Walkthrough

Profiler scopes were added across shader resource processing, pipeline caching, render execution, and fault handling. ShaderInfo::MaxImages increased from 64 to 128. The Windows, macOS, and Linux test steps now continue their jobs when tests fail.

Suggested reviewers: nmzik, senaxx

Change: Refactor

Merge Risk: High · up to c317b

Test failures no longer fail CI on any platform, so a build with failing tests can pass and be published by the release job. Remove continue-on-error, or record the test outcome and fail the job after artifact upload, before merging.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Description check Inconclusive No pull request description was provided by the author, so there is no text to compare against the changeset. The check is lenient, but an empty description gives no information about the changes. The… Add a pull request description that summarizes the profiling zones, the cache lookup and compilation split, the MaxImages change from 64 to 128, and the CI continue-on-error change.
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title "Perf profiling v2" is partially related to the changeset. The PR adds Tracy profiler zones to DispatchIndirect, DrawAuto, MaterializeResources, and page-fault handling, which matches the pr…
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: Title check

Explanation

The title "Perf profiling v2" is partially related to the changeset. The PR adds Tracy profiler zones to DispatchIndirect, DrawAuto, MaterializeResources, and page-fault handling, which matches the profiling theme. However, the title is terse and does not mention the other changes, such as the cache lookup/compilation split, the MaxImages increase, or the CI continue-on-error change. The title is also brief, with a version suffix that gives little context.

Full details: Description check

Explanation

No pull request description was provided by the author, so there is no text to compare against the changeset. The check is lenient, but an empty description gives no information about the changes. The status is INCONCLUSIVE because nothing can be assessed.

Resolution

Add a pull request description that summarizes the profiling zones, the cache lookup and compilation split, the MaxImages change from 64 to 128, and the CI continue-on-error change.

Warning

⚠️ This pull request has been flagged as potential spam (vandalism) by CodeRabbit slop detection and should be reviewed carefully.

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-11-16 21:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2306#issuecomment-6930188094) <!-- 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/2306?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-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> <br> Profiler scopes were added across shader resource processing, pipeline caching, render execution, and fault handling. `ShaderInfo::MaxImages` increased from 64 to 128. The Windows, macOS, and Linux test steps now continue their jobs when tests fail. **Suggested reviewers:** `nmzik`, `senaxx` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"c317be2a7d675d630aaca869e4879ebdb1b7b6c2" --> <!-- change_assessment_priority:{"version":1,"urgency":"p3","manual":false} --> **Change:** Refactor <!-- 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-high-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> High</strong> · up to <code>c317b</code></summary> <dl> <dd> <br> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **🟠 High** · up to `c317b` --> <!-- final_review_risk_coverage:{"sourceCommitId":"c317be2a7d675d630aaca869e4879ebdb1b7b6c2","coveredCommitId":"c317be2a7d675d630aaca869e4879ebdb1b7b6c2","kind":"reviewed"} --> Test failures no longer fail CI on any platform, so a build with failing tests can pass and be published by the release job. Remove continue-on-error, or record the test outcome and fail the job after artifact upload, before merging. <!-- 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> 3 · <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-inconclusive-14-v2.svg" width="14" height="14" align="middle" alt="Inconclusive" title="Inconclusive"></picture></sup> 1</strong></summary> <dl> <dd> <br> <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 inconclusive</strong> | Check name | Status | Explanation | Resolution | | :--------------- | :--------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Description check | ![Inconclusive](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-inconclusive.svg) | No pull request description was provided by the author, so there is no text to compare against the changeset. The check is lenient, but an empty description gives no information about the changes. The… | Add a pull request description that summarizes the profiling zones, the cache lookup and compilation split, the MaxImages change from 64 to 128, and the CI continue-on-error change. | <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: 3 passed</strong></summary> <dl> <dd> <br> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title "Perf profiling v2" is partially related to the changeset. The PR adds Tracy profiler zones to DispatchIndirect, DrawAuto, MaterializeResources, and page-fault handling, which matches the pr… | | 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. | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> <br> **Explanation** The title "Perf profiling v2" is partially related to the changeset. The PR adds Tracy profiler zones to DispatchIndirect, DrawAuto, MaterializeResources, and page-fault handling, which matches the profiling theme. However, the title is terse and does not mention the other changes, such as the cache lookup/compilation split, the MaxImages increase, or the CI continue-on-error change. The title is also brief, with a version suffix that gives little context. </dd> </dl> </details> </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> <br> **Explanation** No pull request description was provided by the author, so there is no text to compare against the changeset. The check is lenient, but an empty description gives no information about the changes. The status is INCONCLUSIVE because nothing can be assessed. **Resolution** Add a pull request description that summarizes the profiling zones, the cache lookup and compilation split, the MaxImages change from 64 to 128, and the CI continue-on-error change. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> > [!WARNING] > ⚠️ This pull request has been flagged as potential spam (vandalism) by CodeRabbit slop detection and should be reviewed carefully. <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=2306)! 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> <br> - [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 -->
@ -122,6 +122,7 @@ jobs:
audio_out_timing_tests ajm_resample_tests png_enc_tests jpeg_dec_tests jpeg_enc_tests occlusion_queries_tests ces_tests save_data_dialog_tests psml_tests --parallel
- name: Test
continue-on-error: true
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-16 21:39 UTC · original

Major · Functional Correctness · Quick win

Preserve test failures in the job result.

If ctest fails and the later steps succeed, continue-on-error lets the platform job pass. (docs.github.com) CI then reports success, and the release job can publish that platform’s artifact because it checks the job result.

If artifact upload must continue after a test failure, record the test outcome and fail the job after upload. Apply this to all three platforms.

Also applies to: 216-216, 402-402

Tools

zizmor (1.31.1)

[warning] 1-540: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)


[warning] 32-140: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)

**@⁠coderabbitai[bot]** on GitHub · 2026-11-16 21:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2306#discussion_r4591956843) <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/major-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Major** · **Functional Correctness** · **Quick win** **Preserve test failures in the job result.** If `ctest` fails and the later steps succeed, `continue-on-error` lets the platform job pass. ([docs.github.com](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax?utm_source=openai)) CI then reports success, and the release job can publish that platform’s artifact because it checks the job result. If artifact upload must continue after a test failure, record the test outcome and fail the job after upload. Apply this to all three platforms. Also applies to: 216-216, 402-402 <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/wrench-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/wrench.svg" width="16" height="16" align="absmiddle" alt=""></picture> Tools</summary> <dl> <dd> <br> <details> <summary>zizmor (1.31.1)</summary> <dl> <dd> <br> [warning] 1-540: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) --- [warning] 32-140: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) </dd> </dl> </details> </dd> </dl> </details> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:3da8486ed7f130ae237b7bf5 --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

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

Actionable comments posted: 1

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d45b0865d8 and c317be2a7d.

Files selected for processing: 8

  • .github/workflows/build.yml
  • src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp
  • src/graphics/host_gpu/renderer/renderCompute.cpp
  • src/graphics/host_gpu/renderer/renderContext.cpp
  • src/graphics/host_gpu/renderer/renderDraw.cpp
  • src/graphics/shader/recompiler/ir/ShaderIR.h
  • src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp
  • src/loader/runtimeLinker.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-16 21:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2306#pullrequestreview-5928212961) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <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> <br> - **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/d45b0865d85ced3da80f43ef2a2ecbeca6296637/.coderabbit.yaml>) - **Commit**: [d45b086](<https://github.com/KytyPS5/KytyPS5/commit/d45b0865d85ced3da80f43ef2a2ecbeca6296637>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `be92253c-672e-4fbe-848f-e48232d8c253` </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> <br> Reviewing files that changed from the base of the PR and between d45b0865d85ced3da80f43ef2a2ecbeca6296637 and c317be2a7d675d630aaca869e4879ebdb1b7b6c2. </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: 8</summary> <dl> <dd> <br> * `.github/workflows/build.yml` * `src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp` * `src/graphics/host_gpu/renderer/renderCompute.cpp` * `src/graphics/host_gpu/renderer/renderContext.cpp` * `src/graphics/host_gpu/renderer/renderDraw.cpp` * `src/graphics/shader/recompiler/ir/ShaderIR.h` * `src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp` * `src/loader/runtimeLinker.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> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=d12ac6e4-0616-4ee6-a7cd-1875b8ab4b1a attempt=f9a0675e-35a1-4e32-b97c-5fc3ca223ecd batch=1/1 -->
Author
Owner

@⁠RubyUwU56 on GitHub · 2026-11-16 23:11 UTC · original

Sorry, this PR was opened by mistake. This branch only contains temporary
Tracy profiling zones for my own measurements, not meant for merging.
The profiling results are summarized in #2293.

**@⁠RubyUwU56** on GitHub · 2026-11-16 23:11 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2306#issuecomment-6932184310) Sorry, this PR was opened by mistake. This branch only contains temporary Tracy profiling zones for my own measurements, not meant for merging. The profiling results are summarized in #2293.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-18 01:29 UTC · original

Close it then @⁠RubyUwU56 that would be appreciated

**@⁠Nawid3333** on GitHub · 2026-11-18 01:29 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2306#issuecomment-6966225063) Close it then @⁠RubyUwU56 that would be appreciated

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.