graphics: add experimental memory-pressure texture retention #902

Open
github-bot wants to merge 3 commits from github-bot/gh-902 into main AGit
Owner

@⁠gohansharma79-svg on GitHub · 2026-09-28 23:00 UTC · original
gohansharma79-svg:lost-crown-texture-retention → main · +456 −228 · 15 files · 3 commits · open

Problem and scope

Prince of Persia: The Lost Crown profiling motivated an opt-in experiment to reduce texture eviction/recreation while GPU memory pressure is low. This PR adds the disabled-by-default Memory-pressure texture retention (experimental) Compatibility setting. No title IDs or game-specific behavior are embedded in the renderer.

The old screenshots below are contextual observations from earlier builds, not an isolated benchmark of this exact patch. A new gameplay A/B on this branch is still needed; this PR does not claim a measured FPS improvement.

Behavior

  • With live GPU memory-budget reporting, sample usage and total budget for device-local heaps that can back images and choose collection pressure at 70/80/90%, with 65/75/85% release hysteresis. Non-device-local capacity cannot hide texture pressure. Recompute the level after the first collection pass before deciding whether to run the aggressive pass.
  • Retain cold textures longer under ordinary live-budget collection and shorten their eligibility age at critical pressure. Existing candidate safety, download and deletion checks remain.
  • With missing/zero budget data or the experiment disabled, retain both main's legacy trigger thresholds and collection ages. Reset hysteresis when a reported budget disappears.
  • Persist the toggle through current saved/global/effective-game settings and per-game export/import. Restart the game after changing it.

Refresh — 19 October 2026

Merged current main 099de8de without rewriting the original contribution and resolved renderer/settings conflicts. Corrected the missing-budget fallback called out in the earlier automated architecture review: the previous experiment used the longer retention ages even when it fell back to legacy thresholds. Removed its constructor threshold override, and use live-budget availability rather than merely the enabled toggle when selecting ages.

The live-budget comparison now uses total budget and usage consistently on unified-memory devices too; it no longer subtracts usage from the denominator before comparing that same usage against it. Unavailable heap budget data selects the legacy path instead of substituting an unmeasured physical-capacity budget.

Validation

  • New portable memory_pressure_policy_tests: entry/release boundaries, direct critical transitions, missing/restored budgets, legacy fallback ages, live-budget ages, over-budget usage and percentage overflow. Pass locally with GCC 15.2, C++20, -O2 -Wall -Wextra -Werror on Windows.
  • New experimental_settings_tests: default disabled, saved reload, effective-game copy, export/import and missing-key legacy settings.
  • CI now includes these focused regressions on Windows, Linux and macOS, and both are dependencies of the standard kyty_tests target. Fresh head 6b1f9a4 CI passes on Windows, Linux and macOS: 15/15 selected tests on Windows and 17/17 each on Linux/macOS, including both new regressions. CI run. Whitespace and launcher XML parsing checks pass locally.
  • The previous red macOS job successfully built, tested and packaged, then failed uploading artifacts due to a DNS lookup error (ENOTFOUND); it was not a C++ compilation failure.
  • No new gameplay/GPU-driver comparison on this exact branch, no sustained FPS measurement and no claim that retention is appropriate for every title. The pressure thresholds remain experimental.

Earlier screenshots (not an isolated benchmark)

Screenshot 2026-09-29 041913 Screenshot 2026-09-29 041942
**@⁠gohansharma79-svg** on GitHub · 2026-09-28 23:00 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/902) `gohansharma79-svg:lost-crown-texture-retention` → `main` · +456 −228 · 15 files · 3 commits · open ## Problem and scope Prince of Persia: The Lost Crown profiling motivated an opt-in experiment to reduce texture eviction/recreation while GPU memory pressure is low. This PR adds the disabled-by-default **Memory-pressure texture retention (experimental)** Compatibility setting. No title IDs or game-specific behavior are embedded in the renderer. The old screenshots below are contextual observations from earlier builds, not an isolated benchmark of this exact patch. A new gameplay A/B on this branch is still needed; this PR does not claim a measured FPS improvement. ## Behavior - With live GPU memory-budget reporting, sample usage and total budget for device-local heaps that can back images and choose collection pressure at 70/80/90%, with 65/75/85% release hysteresis. Non-device-local capacity cannot hide texture pressure. Recompute the level after the first collection pass before deciding whether to run the aggressive pass. - Retain cold textures longer under ordinary live-budget collection and shorten their eligibility age at critical pressure. Existing candidate safety, download and deletion checks remain. - With missing/zero budget data or the experiment disabled, retain **both** main's legacy trigger thresholds and collection ages. Reset hysteresis when a reported budget disappears. - Persist the toggle through current saved/global/effective-game settings and per-game export/import. Restart the game after changing it. ## Refresh — 19 October 2026 Merged current main `099de8de` without rewriting the original contribution and resolved renderer/settings conflicts. Corrected the missing-budget fallback called out in the earlier automated architecture review: the previous experiment used the longer retention ages even when it fell back to legacy thresholds. Removed its constructor threshold override, and use live-budget availability rather than merely the enabled toggle when selecting ages. The live-budget comparison now uses total budget and usage consistently on unified-memory devices too; it no longer subtracts usage from the denominator before comparing that same usage against it. Unavailable heap budget data selects the legacy path instead of substituting an unmeasured physical-capacity budget. ## Validation - New portable `memory_pressure_policy_tests`: entry/release boundaries, direct critical transitions, missing/restored budgets, legacy fallback ages, live-budget ages, over-budget usage and percentage overflow. Pass locally with GCC 15.2, C++20, `-O2 -Wall -Wextra -Werror` on Windows. - New `experimental_settings_tests`: default disabled, saved reload, effective-game copy, export/import and missing-key legacy settings. - CI now includes these focused regressions on Windows, Linux and macOS, and both are dependencies of the standard `kyty_tests` target. Fresh head 6b1f9a4 CI passes on Windows, Linux and macOS: 15/15 selected tests on Windows and 17/17 each on Linux/macOS, including both new regressions. [CI run](https://github.com/KytyPS5/KytyPS5/actions/runs/39176853567). Whitespace and launcher XML parsing checks pass locally. - The previous red macOS job successfully built, tested and packaged, then failed uploading artifacts due to a DNS lookup error (`ENOTFOUND`); it was not a C++ compilation failure. - No new gameplay/GPU-driver comparison on this exact branch, no sustained FPS measurement and no claim that retention is appropriate for every title. The pressure thresholds remain experimental. ## Earlier screenshots (not an isolated benchmark) <img width="2538" height="1267" alt="Screenshot 2026-09-29 041913" src="https://github.com/user-attachments/assets/280651e7-3a07-4483-b354-e8de7f922a5e" /> <img width="2559" height="1310" alt="Screenshot 2026-09-29 041942" src="https://github.com/user-attachments/assets/e67a38bb-7622-4cfa-b440-2ec275f00ca6" />
Add optional texture retention using GPU memory-pressure thresholds and hysteresis to reduce repeated image eviction and recreation.

Include a saved Compatibility toggle, disabled by default. Motivated by earlier Prince of Persia: The Lost Crown profiling. This extracted patch still needs compilation and gameplay validation.
Restore both legacy thresholds and collection ages when live GPU budgets are unavailable. Use consistent usage and total-budget quantities, reset lost-budget hysteresis, port launcher settings, and add focused policy and settings regressions.
Measure texture pressure only on device-local heaps, recompute hysteresis after the first collection pass, and include both new regression executables in the documented kyty_tests target.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:36:39 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-28 23:08 UTC · original · edited 2026-10-18 23:47 UTC

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e6082b2f-0100-4665-8546-c7dd8f677215
📥 Commits

Reviewing files that changed from the base of the PR and between e32c83dc3d and 6b1f9a4438.

📒 Files selected for processing: 4
  • CMakeLists.txt
  • src/graphics/host_gpu/renderer/cache/textureCache.cpp
  • src/graphics/host_gpu/vma.cpp
  • src/launcher/CMakeLists.txt
🚧 Files skipped from review as they are similar to previous changes: 3
  • src/launcher/CMakeLists.txt
  • src/graphics/host_gpu/vma.cpp
  • src/graphics/host_gpu/renderer/cache/textureCache.cpp

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

📝 Walkthrough

The change adds GPU memory-budget reporting and a stateful pressure policy for texture collection. An experimental launcher setting controls whether the emulator uses live memory pressure to select collection behavior. The launcher persists the setting and passes it to the emulator process through an environment variable. New tests cover the setting and pressure policy, and build jobs run both test targets.

Suggested reviewers: nmzik

Priority: ⬇️ Low

Change: Feature

Merge Risk: ⚪ Minimal · up to 6b1f9

The retention experiment is disabled by default, and existing collection behavior remains in use when live budget reporting is unavailable. No concrete current-head failure is established, so merge risk is minimal.

Security architecture risk: 🟡 Moderate · up to 2af1b

The experimental mode is off by default, but enabling it can weaken memory-pressure recovery when GPU budget data is unavailable: textures may remain eligible for collection much later than before. The observed change does not add a credential, network, or privilege boundary.

Retained concerns

  • Medium · reliability · observed: When the opt-in mode has no live pressure level, collection falls back to memory thresholds but not to legacy texture ages. An ordinary collection pass waits 160 ticks rather than 16 before considering textures, potentially delaying reclamation when budget reporting is unavailable.
Security review details

Security Blast Radius

  • inferred — The demonstrated availability impact is confined to an emulator process running with the experimental option enabled; broader attackable scope is not established.

Trust Boundaries and Controls

  • observed — The existing launcher-to-emulator configuration path carries the setting as a constrained child-process environment value. The traced consumer does not grant new authority.

Resilience and Maintainability Implications

  • inferred — Delayed eligibility during the no-pressure-data fallback can weaken allocation-failure containment, although the collector still validates candidates and performs its existing cleanup sequence.

Hardening Proposals

  • proposed — Select legacy trigger and age behavior together whenever no live pressure level is available, then validate retention and recovery on devices with and without usable budget reporting.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 5.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 55 functions across 11 files. (2 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
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.
Title check Passed The title clearly and concisely describes the primary change: adding experimental memory-pressure texture retention to graphics.
Description check Passed The description directly explains the memory-pressure texture retention feature, its configuration, behavior, validation, and limitations.
Full details: Docstring Coverage

Explanation

Docstring coverage is 5.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 55 functions across 11 files. (2 skipped: 2 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

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

**@⁠coderabbitai[bot]** on GitHub · 2026-09-28 23:08 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/902#issuecomment-5880357020) · edited 2026-10-18 23:47 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/902?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>ℹ️ Recent review info</strong></summary> <dl> <dd> <details> <summary><strong>⚙️ Run configuration</strong></summary> <dl> <dd> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `e6082b2f-0100-4665-8546-c7dd8f677215` </dd> </dl> </details> <details> <summary><strong>📥 Commits</strong></summary> <dl> <dd> Reviewing files that changed from the base of the PR and between e32c83dc3d5e742dabac9b1fb23745f094b4f043 and 6b1f9a4438bf53e227706351eef2a71e8febdb7b. </dd> </dl> </details> <details> <summary><strong>📒 Files selected for processing: 4</strong></summary> <dl> <dd> * `CMakeLists.txt` * `src/graphics/host_gpu/renderer/cache/textureCache.cpp` * `src/graphics/host_gpu/vma.cpp` * `src/launcher/CMakeLists.txt` </dd> </dl> </details> <details> <summary><strong>🚧 Files skipped from review as they are similar to previous changes: 3</strong></summary> <dl> <dd> * src/launcher/CMakeLists.txt * src/graphics/host_gpu/vma.cpp * src/graphics/host_gpu/renderer/cache/textureCache.cpp </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review. </dd> </dl> </details> <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary><strong>📝 Walkthrough</strong></summary> <dl> <dd> The change adds GPU memory-budget reporting and a stateful pressure policy for texture collection. An experimental launcher setting controls whether the emulator uses live memory pressure to select collection behavior. The launcher persists the setting and passes it to the emulator process through an environment variable. New tests cover the setting and pressure policy, and build jobs run both test targets. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"6b1f9a4438bf53e227706351eef2a71e8febdb7b" --> **Change:** Feature <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong>⚪ Minimal</strong> · up to <code>6b1f9</code></summary> <dl> <dd> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `6b1f9` --> <!-- final_review_risk_coverage:{"sourceCommitId":"6b1f9a4438bf53e227706351eef2a71e8febdb7b","coveredCommitId":"6b1f9a4438bf53e227706351eef2a71e8febdb7b","kind":"reviewed"} --> The retention experiment is disabled by default, and existing collection behavior remains in use when live budget reporting is unavailable. No concrete current-head failure is established, so merge risk is minimal. <!-- final_review_risk_end --> </dd> </dl> </details> <details> <summary><strong>Security architecture risk:</strong> <strong>🟡 Moderate</strong> · up to <code>2af1b</code></summary> <dl> <dd> <!-- architecture_review_start --> <!-- architecture_review_label ### Security Architecture Review **Security architecture risk:** _🟡 Moderate_ · up to `2af1b` --> The experimental mode is off by default, but enabling it can weaken memory-pressure recovery when GPU budget data is unavailable: textures may remain eligible for collection much later than before. The observed change does not add a credential, network, or privilege boundary. **Retained concerns** - **Medium · reliability · observed:** When the opt-in mode has no live pressure level, collection falls back to memory thresholds but not to legacy texture ages. An ordinary collection pass waits 160 ticks rather than 16 before considering textures, potentially delaying reclamation when budget reporting is unavailable. <details> <summary><strong>Security review details</strong></summary> <dl> <dd> **Security Blast Radius** - _inferred_ — The demonstrated availability impact is confined to an emulator process running with the experimental option enabled; broader attackable scope is not established. **Trust Boundaries and Controls** - _observed_ — The existing launcher-to-emulator configuration path carries the setting as a constrained child-process environment value. The traced consumer does not grant new authority. **Resilience and Maintainability Implications** - _inferred_ — Delayed eligibility during the no-pressure-data fallback can weaken allocation-failure containment, although the collector still validates candidates and performs its existing cleanup sequence. **Hardening Proposals** - _proposed_ — Select legacy trigger and age behavior together whenever no live pressure level is available, then validate retention and recovery on devices with and without usable budget reporting. </dd> </dl> </details> <!-- architecture_review_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 5.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 55 functions across 11 files. (2 skipped: … | 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 | | :------------------------ | :--------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------- | | 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. | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title clearly and concisely describes the primary change: adding experimental memory-pressure texture retention to graphics. | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description directly explains the memory-pressure texture retention feature, its configuration, behavior, validation, and limitations. | </dd> </dl> </details> <details> <summary><strong>Full details: Docstring Coverage</strong></summary> <dl> <dd> **Explanation** Docstring coverage is 5.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 55 functions across 11 files. (2 skipped: 2 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=902)! 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> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠gohansharma79-svg on GitHub · 2026-09-29 03:33 UTC · original

@⁠Nmzik

**@⁠gohansharma79-svg** on GitHub · 2026-09-29 03:33 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/902#issuecomment-5883107026) @⁠Nmzik
Author
Owner

@⁠gohansharma79-svg on GitHub · 2026-10-03 10:30 UTC · original

@⁠Nmzik can you please check this

**@⁠gohansharma79-svg** on GitHub · 2026-10-03 10:30 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/902#issuecomment-5968305481) @⁠Nmzik can you please check this
Author
Owner

@⁠gohansharma79-svg on GitHub · 2026-10-18 15:16 UTC · original

@⁠Nmzik

**@⁠gohansharma79-svg** on GitHub · 2026-10-18 15:16 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/902#issuecomment-6251565097) @⁠Nmzik
@ -1959,0 +1986,4 @@
live_pressure = m_pressure_policy.Update(m_total_used_memory, *live_budget);
}
if (live_pressure ? *live_pressure == MemoryPressurePolicy::Level::Critical
: m_total_used_memory >= m_critical_gc_memory) {
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-18 23:28 UTC · original · edited 2026-10-18 23:31 UTC

🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

sed -n '1890,2000p' src/graphics/host_gpu/renderer/cache/textureCache.cpp
rg -n 'RunGarbageCollector|m_total_used_memory' src/graphics/host_gpu/renderer/cache/textureCache.cpp

Repository: KytyPS5/KytyPS5

Length of output: 4812


🏁 Script executed:

set -o pipefail
printf '%s\n' '--- RunGarbageCollector callers ---'
rg -n -F --glob '!build/**' --glob '!dist/**' -e 'RunGarbageCollector(' -e 'Rev3TextureRetentionEnabled' -e 'TextureRetention' src | head -200
printf '%s\n' '--- FreeImage and memory accounting ---'
sed -n '180,275p' src/graphics/host_gpu/renderer/cache/textureCache.cpp
rg -n -F --glob '*.cpp' --glob '*.h' -- 'void TextureCache::FreeImage' 'FreeImage(' 'm_gc_tick' src/graphics/host_gpu/renderer/cache | head -200
printf '%s\n' '--- feature setting declarations and default ---'
rg -n -F --glob '*.cpp' --glob '*.h' --glob '*.ini' --glob '*.json' -e 'Rev3' -e 'retention' -e 'Compatibility' src | head -240

Repository: KytyPS5/KytyPS5

Length of output: 8908


🏁 Script executed:

set -o pipefail
printf '%s\n' '--- caller cadence ---'
sed -n '570,625p' src/graphics/guest_gpu/graphicsRun.cpp
sed -n '120,152p' src/graphics/host_gpu/renderer/renderContext.cpp
printf '%s\n' '--- FreeImage implementation ---'
sed -n '275,340p' src/graphics/host_gpu/renderer/cache/textureCache.cpp
printf '%s\n' '--- retention toggle and includes ---'
sed -n '1,55p' src/graphics/host_gpu/renderer/cache/textureCache.cpp
rg -n -F --glob '*.cpp' --glob '*.h' -- -e 'RunGarbageCollector();' -e 'm_gc_tick' src/graphics | head -100

Repository: KytyPS5/KytyPS5

Length of output: 8178


🏁 Script executed:

set -o pipefail
printf '%s\n' '--- pressure policy ---'
rg -n -F --glob '*.cpp' --glob '*.h' -- 'class MemoryPressurePolicy' 'struct MemoryPressurePolicy' 'MemoryPressurePolicy::Update' 'TextureAge' src | head -120
printf '%s\n' '--- deletion and image lifetime ---'
sed -n '235,315p' src/graphics/host_gpu/renderer/cache/textureCache.cpp
rg -n -F --glob '*.h' --glob '*.cpp' -- 'struct Image' 'class Image' 'AccountedSize()' 'm_slot_images' src/graphics/host_gpu/renderer | head -160
printf '%s\n' '--- suspend-point context ---'
rg -n -F --glob '*.cpp' --glob '*.h' -- 'SubmissionType::SuspendPoint' 'SuspendPoint' src/graphics/guest_gpu src/graphics/host_gpu | head -100

Repository: KytyPS5/KytyPS5

Length of output: 4168


🏁 Script executed:

printf '%s\n' '--- memory pressure policy ---'
cat src/graphics/host_gpu/renderer/cache/memoryPressurePolicy.h
printf '%s\n' '--- suspend-point producer ---'
sed -n '145,190p' src/graphics/guest_gpu/graphicsRun.cpp

Repository: KytyPS5/KytyPS5

Length of output: 3202


Recompute live pressure before the aggressive pass.

collect(false) can free textures using the pressure age. live_pressure still holds the pre-eviction Critical level, so the second pass can use the critical age and evict up to 40 more recently used textures. This can recur at each frame boundary while pressure remains critical.

The mode is opt-in and disabled by default, so this is a minor performance issue. The fix is localized: recompute the level from m_total_used_memory after the first pass, or sample the budget again before the second-pass gate.

Suggested fix
 	std::optional<MemoryPressurePolicy::Level> live_pressure;
+	std::optional<uint64_t>                  live_budget;
 	if (m_graphics.CanReportMemoryUsage()) {
 		if (Rev3TextureRetentionEnabled()) {
 			const auto budget   = m_graphics.GetMemoryBudget();
 			m_total_used_memory = budget.usage;
 			const auto level    = m_pressure_policy.Update(budget.usage, budget.budget);
-			if (budget.budget != 0) live_pressure = level;
+			if (budget.budget != 0) {
+				live_budget   = budget.budget;
+				live_pressure = level;
+			}
 		} else {
 			m_total_used_memory = m_graphics.GetDeviceMemoryUsage();
 		}
 	}
@@
 	};
 	collect(false);
+	if (live_pressure) {
+		*live_pressure = m_pressure_policy.Update(m_total_used_memory, *live_budget);
+	}
 	if (live_pressure ? *live_pressure == MemoryPressurePolicy::Level::Critical
 	                  : m_total_used_memory >= m_critical_gc_memory) {

✅ Addressed in commit 6b1f9a4

**@⁠coderabbitai[bot]** on GitHub · 2026-10-18 23:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/902#discussion_r4309240286) · edited 2026-10-18 23:31 UTC **🚀 Performance & Scalability** | **🟡 Minor** | **⚡ Quick win** <details> <summary>🔎 Supported by static analysis</summary> 🏁 Script executed: ```bash sed -n '1890,2000p' src/graphics/host_gpu/renderer/cache/textureCache.cpp rg -n 'RunGarbageCollector|m_total_used_memory' src/graphics/host_gpu/renderer/cache/textureCache.cpp ``` Repository: KytyPS5/KytyPS5 Length of output: 4812 --- 🏁 Script executed: ```bash set -o pipefail printf '%s\n' '--- RunGarbageCollector callers ---' rg -n -F --glob '!build/**' --glob '!dist/**' -e 'RunGarbageCollector(' -e 'Rev3TextureRetentionEnabled' -e 'TextureRetention' src | head -200 printf '%s\n' '--- FreeImage and memory accounting ---' sed -n '180,275p' src/graphics/host_gpu/renderer/cache/textureCache.cpp rg -n -F --glob '*.cpp' --glob '*.h' -- 'void TextureCache::FreeImage' 'FreeImage(' 'm_gc_tick' src/graphics/host_gpu/renderer/cache | head -200 printf '%s\n' '--- feature setting declarations and default ---' rg -n -F --glob '*.cpp' --glob '*.h' --glob '*.ini' --glob '*.json' -e 'Rev3' -e 'retention' -e 'Compatibility' src | head -240 ``` Repository: KytyPS5/KytyPS5 Length of output: 8908 --- 🏁 Script executed: ```bash set -o pipefail printf '%s\n' '--- caller cadence ---' sed -n '570,625p' src/graphics/guest_gpu/graphicsRun.cpp sed -n '120,152p' src/graphics/host_gpu/renderer/renderContext.cpp printf '%s\n' '--- FreeImage implementation ---' sed -n '275,340p' src/graphics/host_gpu/renderer/cache/textureCache.cpp printf '%s\n' '--- retention toggle and includes ---' sed -n '1,55p' src/graphics/host_gpu/renderer/cache/textureCache.cpp rg -n -F --glob '*.cpp' --glob '*.h' -- -e 'RunGarbageCollector();' -e 'm_gc_tick' src/graphics | head -100 ``` Repository: KytyPS5/KytyPS5 Length of output: 8178 --- 🏁 Script executed: ```bash set -o pipefail printf '%s\n' '--- pressure policy ---' rg -n -F --glob '*.cpp' --glob '*.h' -- 'class MemoryPressurePolicy' 'struct MemoryPressurePolicy' 'MemoryPressurePolicy::Update' 'TextureAge' src | head -120 printf '%s\n' '--- deletion and image lifetime ---' sed -n '235,315p' src/graphics/host_gpu/renderer/cache/textureCache.cpp rg -n -F --glob '*.h' --glob '*.cpp' -- 'struct Image' 'class Image' 'AccountedSize()' 'm_slot_images' src/graphics/host_gpu/renderer | head -160 printf '%s\n' '--- suspend-point context ---' rg -n -F --glob '*.cpp' --glob '*.h' -- 'SubmissionType::SuspendPoint' 'SuspendPoint' src/graphics/guest_gpu src/graphics/host_gpu | head -100 ``` Repository: KytyPS5/KytyPS5 Length of output: 4168 --- 🏁 Script executed: ```bash printf '%s\n' '--- memory pressure policy ---' cat src/graphics/host_gpu/renderer/cache/memoryPressurePolicy.h printf '%s\n' '--- suspend-point producer ---' sed -n '145,190p' src/graphics/guest_gpu/graphicsRun.cpp ``` Repository: KytyPS5/KytyPS5 Length of output: 3202 --- </details> **Recompute live pressure before the aggressive pass.** `collect(false)` can free textures using the pressure age. `live_pressure` still holds the pre-eviction `Critical` level, so the second pass can use the critical age and evict up to 40 more recently used textures. This can recur at each frame boundary while pressure remains critical. The mode is opt-in and disabled by default, so this is a minor performance issue. The fix is localized: recompute the level from `m_total_used_memory` after the first pass, or sample the budget again before the second-pass gate. <details> <summary>Suggested fix</summary> ```diff std::optional<MemoryPressurePolicy::Level> live_pressure; + std::optional<uint64_t> live_budget; if (m_graphics.CanReportMemoryUsage()) { if (Rev3TextureRetentionEnabled()) { const auto budget = m_graphics.GetMemoryBudget(); m_total_used_memory = budget.usage; const auto level = m_pressure_policy.Update(budget.usage, budget.budget); - if (budget.budget != 0) live_pressure = level; + if (budget.budget != 0) { + live_budget = budget.budget; + live_pressure = level; + } } else { m_total_used_memory = m_graphics.GetDeviceMemoryUsage(); } } @@ }; collect(false); + if (live_pressure) { + *live_pressure = m_pressure_policy.Update(m_total_used_memory, *live_budget); + } if (live_pressure ? *live_pressure == MemoryPressurePolicy::Level::Critical : m_total_used_memory >= m_critical_gc_memory) { ``` </details> <!-- fingerprinting:phantom:medusa:pangolin --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:686f4da2452ce43361f27930 --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit 6b1f9a4
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-18 23:28 UTC · original · edited 2026-10-18 23:31 UTC
On src/graphics/host_gpu/vma.cpp line 164 (outdated):

@@ -146,6 +146,27 @@ uint64_t GraphicContext::GetTotalMemoryBudget() const {
 	return std::max(local, available > system_reserve ? available - system_reserve : uint64_t {0});
 }
 
+GraphicContext::MemoryBudget GraphicContext::GetMemoryBudget() const {
+	if (!CanReportMemoryUsage() || allocator == nullptr) return {};
+	VmaBudget budgets[VK_MAX_MEMORY_HEAPS] {};
+	vmaGetHeapBudgets(allocator, budgets);
+	const bool discrete =
+	    physical_device_properties.deviceType == vk::PhysicalDeviceType::eDiscreteGpu;
+	uint64_t budget = 0;
+	uint64_t usage  = 0;
+	for (uint32_t heap = 0; heap < physical_device_memory_properties.memoryHeapCount; ++heap) {
+		const auto& properties = physical_device_memory_properties.memoryHeaps[heap];
+		const bool  device_local =
+		    static_cast<bool>(properties.flags & vk::MemoryHeapFlagBits::eDeviceLocal);
+		if (!discrete || device_local) {
+			if (budgets[heap].budget == 0) return {GetDeviceMemoryUsage(), 0};
+			budget += budgets[heap].budget;
+			usage += budgets[heap].usage;

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Exclude unusable heaps from texture-pressure calculations.

When a non-discrete GPU has separate device-local and non-device-local heaps, this code adds both budgets. CreateImage requires device-local memory. A large unused non-device-local budget can therefore keep the reported pressure below Collect while the heap available to textures fills. Texture collection then stops before an image allocation fails. Calculate pressure against the heaps that can back these images.

✅ Addressed in commit 6b1f9a4

**@⁠coderabbitai[bot]** on GitHub · 2026-10-18 23:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/902#discussion_r4309240289) · edited 2026-10-18 23:31 UTC On `src/graphics/host_gpu/vma.cpp` line 164 (outdated): ```diff @@ -146,6 +146,27 @@ uint64_t GraphicContext::GetTotalMemoryBudget() const { return std::max(local, available > system_reserve ? available - system_reserve : uint64_t {0}); } +GraphicContext::MemoryBudget GraphicContext::GetMemoryBudget() const { + if (!CanReportMemoryUsage() || allocator == nullptr) return {}; + VmaBudget budgets[VK_MAX_MEMORY_HEAPS] {}; + vmaGetHeapBudgets(allocator, budgets); + const bool discrete = + physical_device_properties.deviceType == vk::PhysicalDeviceType::eDiscreteGpu; + uint64_t budget = 0; + uint64_t usage = 0; + for (uint32_t heap = 0; heap < physical_device_memory_properties.memoryHeapCount; ++heap) { + const auto& properties = physical_device_memory_properties.memoryHeaps[heap]; + const bool device_local = + static_cast<bool>(properties.flags & vk::MemoryHeapFlagBits::eDeviceLocal); + if (!discrete || device_local) { + if (budgets[heap].budget == 0) return {GetDeviceMemoryUsage(), 0}; + budget += budgets[heap].budget; + usage += budgets[heap].usage; ``` **🩺 Stability & Availability** | **🟠 Major** | **⚡ Quick win** **Exclude unusable heaps from texture-pressure calculations.** When a non-discrete GPU has separate device-local and non-device-local heaps, this code adds both budgets. `CreateImage` requires device-local memory. A large unused non-device-local budget can therefore keep the reported pressure below `Collect` while the heap available to textures fills. Texture collection then stops before an image allocation fails. Calculate pressure against the heaps that can back these images. <!-- fingerprinting:phantom:poseidon:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:ddd6f0264ef56959214a961c --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit 6b1f9a4
@ -227,1 +227,4 @@
clang_tidy_check(launcher "" "${tidy_dirs}" "${inc_headers}")
if(BUILD_TESTING)
add_executable(experimental_settings_tests EXCLUDE_FROM_ALL
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-18 23:28 UTC · original · edited 2026-10-18 23:31 UTC

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

#!/bin/bash
# Check whether the build workflow explicitly builds the excluded test target.
rg -n -C 4 'experimental_settings_tests|experimental_settings|cmake --build|ctest' \
  CMakeLists.txt .github/workflows/build.yml src/launcher/CMakeLists.txt

Repository: KytyPS5/KytyPS5

Length of output: 6343


🏁 Script executed:

set -o pipefail
printf '%s\n' '--- test/build references ---'
rg -n -i -F -e 'ctest' -e 'BUILD_TESTING' -e 'build.*test' -e 'test.*build' --glob '!build/**' --glob '!dist/**' --glob '!vendor/**' . || test "$?" -eq 1
printf '%s\n' '--- root build/test context ---'
if test -f CMakeLists.txt; then
  nl -ba CMakeLists.txt | sed -n '1,180p'
fi
printf '%s\n' '--- workflow setup context ---'
nl -ba .github/workflows/build.yml | sed -n '80,135p'

Repository: KytyPS5/KytyPS5

Length of output: 10607


🏁 Script executed:

printf '%s\n' '--- README build/test instructions ---'
nl -ba README.md | sed -n '285,350p'
printf '%s\n' '--- CMake test target context ---'
nl -ba CMakeLists.txt | sed -n '500,565p;600,635p;735,765p;835,860p'

Repository: KytyPS5/KytyPS5

Length of output: 11386


🏁 Script executed:

nl -ba CMakeLists.txt | sed -n '645,740p'

Repository: KytyPS5/KytyPS5

Length of output: 5221


Add experimental_settings_tests to kyty_tests.

The documented workflow builds kyty_tests before running CTest. kyty_tests does not depend on experimental_settings_tests, so CTest can attempt to run the registered test before its executable is built.

Suggested fix
--- "a/src/launcher/CMakeLists.txt"
+++ "b/src/launcher/CMakeLists.txt"
@@ -227,9 +227,10 @@
 clang_tidy_check(launcher "" "${tidy_dirs}" "${inc_headers}")
 
 if(BUILD_TESTING)
     add_executable(experimental_settings_tests EXCLUDE_FROM_ALL
         "${KYTY_TESTS_DIR}/ExperimentalSettingsTests.cpp"
         "${CMAKE_CURRENT_SOURCE_DIR}/src/configuration.cpp")
+    add_dependencies(kyty_tests experimental_settings_tests)
     target_include_directories(experimental_settings_tests PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")
     target_link_libraries(experimental_settings_tests Qt6::Widgets common)
     set_target_properties(experimental_settings_tests PROPERTIES AUTOMOC ON)

✅ Addressed in commit 6b1f9a4

**@⁠coderabbitai[bot]** on GitHub · 2026-10-18 23:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/902#discussion_r4309240291) · edited 2026-10-18 23:31 UTC **🎯 Functional Correctness** | **🟡 Minor** | **⚡ Quick win** <details> <summary>🔎 Supported by static analysis</summary> 🏁 Script executed: ```bash #!/bin/bash # Check whether the build workflow explicitly builds the excluded test target. rg -n -C 4 'experimental_settings_tests|experimental_settings|cmake --build|ctest' \ CMakeLists.txt .github/workflows/build.yml src/launcher/CMakeLists.txt ``` Repository: KytyPS5/KytyPS5 Length of output: 6343 --- 🏁 Script executed: ```bash set -o pipefail printf '%s\n' '--- test/build references ---' rg -n -i -F -e 'ctest' -e 'BUILD_TESTING' -e 'build.*test' -e 'test.*build' --glob '!build/**' --glob '!dist/**' --glob '!vendor/**' . || test "$?" -eq 1 printf '%s\n' '--- root build/test context ---' if test -f CMakeLists.txt; then nl -ba CMakeLists.txt | sed -n '1,180p' fi printf '%s\n' '--- workflow setup context ---' nl -ba .github/workflows/build.yml | sed -n '80,135p' ``` Repository: KytyPS5/KytyPS5 Length of output: 10607 --- 🏁 Script executed: ```bash printf '%s\n' '--- README build/test instructions ---' nl -ba README.md | sed -n '285,350p' printf '%s\n' '--- CMake test target context ---' nl -ba CMakeLists.txt | sed -n '500,565p;600,635p;735,765p;835,860p' ``` Repository: KytyPS5/KytyPS5 Length of output: 11386 --- 🏁 Script executed: ```bash nl -ba CMakeLists.txt | sed -n '645,740p' ``` Repository: KytyPS5/KytyPS5 Length of output: 5221 --- </details> **Add `experimental_settings_tests` to `kyty_tests`.** The documented workflow builds `kyty_tests` before running CTest. `kyty_tests` does not depend on `experimental_settings_tests`, so CTest can attempt to run the registered test before its executable is built. <details> <summary>Suggested fix</summary> ```diff --- "a/src/launcher/CMakeLists.txt" +++ "b/src/launcher/CMakeLists.txt" @@ -227,9 +227,10 @@ clang_tidy_check(launcher "" "${tidy_dirs}" "${inc_headers}") if(BUILD_TESTING) add_executable(experimental_settings_tests EXCLUDE_FROM_ALL "${KYTY_TESTS_DIR}/ExperimentalSettingsTests.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/configuration.cpp") + add_dependencies(kyty_tests experimental_settings_tests) target_include_directories(experimental_settings_tests PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include") target_link_libraries(experimental_settings_tests Qt6::Widgets common) set_target_properties(experimental_settings_tests PROPERTIES AUTOMOC ON) ``` </details> <!-- fingerprinting:phantom:poseidon:wombat --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:5f0435b4edca206f36b5be3f --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit 6b1f9a4
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-18 23:28 UTC · original · reviewed

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f954ea63-09a1-448d-b329-0e3c470e06ab
📥 Commits

Reviewing files that changed from the base of the PR and between 2af1b5d448 and e32c83dc3d.

📒 Files selected for processing: 15
  • .github/workflows/build.yml
  • CMakeLists.txt
  • src/graphics/host_gpu/graphicContext.h
  • src/graphics/host_gpu/renderer/cache/memoryPressurePolicy.h
  • src/graphics/host_gpu/renderer/cache/textureCache.cpp
  • src/graphics/host_gpu/renderer/cache/textureCache.h
  • src/graphics/host_gpu/vma.cpp
  • src/launcher/CMakeLists.txt
  • src/launcher/forms/configuration_edit_dialog.ui
  • src/launcher/include/configuration.h
  • src/launcher/src/configuration.cpp
  • src/launcher/src/configurationEditDialog.cpp
  • src/launcher/src/mainDialog.cpp
  • tests/ExperimentalSettingsTests.cpp
  • tests/MemoryPressurePolicyTests.cpp

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

**@⁠coderabbitai[bot]** on GitHub · 2026-10-18 23:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/902#pullrequestreview-5565571936) · **reviewed** **Actionable comments posted: 3** --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `f954ea63-09a1-448d-b329-0e3c470e06ab` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 2af1b5d448d235e1a55fcf7c96df76d8fc4bbd62 and e32c83dc3d5e742dabac9b1fb23745f094b4f043. </details> <details> <summary>📒 Files selected for processing: 15</summary> * `.github/workflows/build.yml` * `CMakeLists.txt` * `src/graphics/host_gpu/graphicContext.h` * `src/graphics/host_gpu/renderer/cache/memoryPressurePolicy.h` * `src/graphics/host_gpu/renderer/cache/textureCache.cpp` * `src/graphics/host_gpu/renderer/cache/textureCache.h` * `src/graphics/host_gpu/vma.cpp` * `src/launcher/CMakeLists.txt` * `src/launcher/forms/configuration_edit_dialog.ui` * `src/launcher/include/configuration.h` * `src/launcher/src/configuration.cpp` * `src/launcher/src/configurationEditDialog.cpp` * `src/launcher/src/mainDialog.cpp` * `tests/ExperimentalSettingsTests.cpp` * `tests/MemoryPressurePolicyTests.cpp` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=f42affd0-5bd9-40cb-bd2e-e437c2a0dbc5 attempt=74750798-8cff-4b4a-9e1f-44d792b86d35 batch=1/1 -->
Author
Owner

@⁠gohansharma79-svg on GitHub · 2026-10-18 23:48 UTC · original · edited 2026-10-18 23:54 UTC

@⁠Nmzik, #902 and the related interrupt-batching PR #900 have been refreshed against main 099de8de, with the merge conflicts resolved and current launcher/per-game settings support retained.

For #902, the update restores legacy thresholds and ages without live budgets, restricts live texture pressure to device-local heaps, and recomputes pressure before the aggressive pass. The new policy and settings regressions pass: 15/15 selected tests on Windows, 17/17 on Linux and 17/17 on macOS, with all three builds and packaging successful. Validation run.

For #900, the tested source at b06a28f passes 14/14 selected tests on Windows and 16/16 each on Linux/macOS, with all builds and packaging successful. Validation run. Its Windows CI GPU fixture also passes --gpu-command-lane-only in separate processes with KYTY_DEFER_RELEASE_MEM_INTERRUPTS=0 and =1 on an RTX 4070 SUPER, driver 616.64, Ryzen 7 5800X, Windows 11 Pro. Both modes pass the command lane, scalar leaf call, AGC system table, indirect control flow, wait/resume, rewind and CE completion checks.

The latest #900 commit 314e710 only places that executable beside its DLLs in the test artifact. The flattened package passed both modes again with only the Windows system directories on PATH. Its automatic packaging rerun is pending; no production or test source changed after the passing runs.

Both features remain opt-in and disabled by default. The earlier screenshots came from combined builds; they do not isolate either PR's FPS contribution. The descriptions now make that limitation explicit.

Could you review whether these experiments fit the project's direction, and advise which additional title-specific traces or comparisons would be most useful before considering a merge?

**@⁠gohansharma79-svg** on GitHub · 2026-10-18 23:48 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/902#issuecomment-6256684194) · edited 2026-10-18 23:54 UTC @⁠Nmzik, #902 and the related interrupt-batching PR #900 have been refreshed against main `099de8de`, with the merge conflicts resolved and current launcher/per-game settings support retained. For #902, the update restores legacy thresholds and ages without live budgets, restricts live texture pressure to device-local heaps, and recomputes pressure before the aggressive pass. The new policy and settings regressions pass: **15/15 selected tests on Windows, 17/17 on Linux and 17/17 on macOS**, with all three builds and packaging successful. [Validation run](https://github.com/KytyPS5/KytyPS5/actions/runs/39176853567). For #900, the tested source at `b06a28f` passes **14/14 selected tests on Windows and 16/16 each on Linux/macOS**, with all builds and packaging successful. [Validation run](https://github.com/KytyPS5/KytyPS5/actions/runs/39177355804). Its Windows CI GPU fixture also passes `--gpu-command-lane-only` in separate processes with `KYTY_DEFER_RELEASE_MEM_INTERRUPTS=0` and `=1` on an RTX 4070 SUPER, driver 616.64, Ryzen 7 5800X, Windows 11 Pro. Both modes pass the command lane, scalar leaf call, AGC system table, indirect control flow, wait/resume, rewind and CE completion checks. The latest #900 commit `314e710` only places that executable beside its DLLs in the test artifact. The flattened package passed both modes again with only the Windows system directories on PATH. Its automatic [packaging rerun](https://github.com/KytyPS5/KytyPS5/actions/runs/39178373280) is pending; no production or test source changed after the passing runs. Both features remain opt-in and disabled by default. The earlier screenshots came from combined builds; they do not isolate either PR's FPS contribution. The descriptions now make that limitation explicit. Could you review whether these experiments fit the project's direction, and advise which additional title-specific traces or comparisons would be most useful before considering a merge?
This pull request has changes conflicting with the target branch.
  • .github/workflows/build.yml
  • src/graphics/host_gpu/graphicContext.h
  • src/graphics/host_gpu/renderer/cache/textureCache.cpp
  • src/graphics/host_gpu/renderer/cache/textureCache.h
  • src/launcher/include/configuration.h
  • src/launcher/src/configuration.cpp
  • src/launcher/src/configurationEditDialog.cpp
  • src/launcher/src/mainDialog.cpp
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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