Repository navigation
Conversation
A manual dispatch gains a linux_arch choice (both, x86_64 or aarch64) that narrows the base Linux legs and the Nix linux systems, and a build_nix tick that skips the Nix job entirely. Defaults keep pushes, dailies, PR builds and untouched manual runs building both architectures with Nix on. Cherry-picked verbatim onto nx2 and nx2-experimental so a rebase of nx2-experimental onto nx2 drops it as already applied.
`no` keeps the skip the boolean could express. `only` runs the Nix job for the systems the Linux/macOS ticks (and linux_arch) select, and skips the Linux, Windows and macOS jobs -- plus the release job, whose assets all come from those legs, so publishing there would only fail on an empty artifact set. Default stays `yes`: pushes, dailies, PR builds and untouched manual runs are unchanged.
…pipeline, and ASTC caches On integrated GPUs and hosts with 18 GiB of RAM or less, guest RAM, host heap, and UMA video memory share the same physical RAM: - Cap integrated GPU device_access_memory on <= 18 GiB (2304 MiB conservative, 3 GiB aggressive) and <= 10 GiB (1536 MiB / 2 GiB) hosts so TextureCache GC runs before pushing the OS into swap. - Bound pipeline translation/background threads on iGPUs and <= 18 GiB hosts, evict unused graphics pipelines after 3600 frames instead of 9000, and call malloc_trim(0) on glibc after eviction and every 1800 frames. - Lower BufferCache GC thresholds to 192/384 MiB when device_local <= 3 GiB. - Cap the iGPU stream buffer to 64 MiB on <= 18 GiB hosts, use quarter-step staging buffer size classes above 1 MiB, and free staging buffers idle for 60 frames (largest first). - Evict MultiRangeBufferCache entries unused for 300 frames without waiting on in-flight ticks mid-draw. - Lower SparseLayersCap and TrimmedAstcArrayLimit on <= 3 GiB device-local memory and bound ASTC transcode scratch to 32 MiB free / 128 MiB in-flight on integrated or <= 4 GiB GPUs. Assisted-by: Antigravity (RAM profiling, implementation, and verification)
|
Retargeted to |
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tightens Vulkan memory budgets and cache retention on integrated GPUs and hosts with 18 GiB of RAM or less so UMA video memory allocations do not push the host OS into heavy swap. Standalone; no dependency on the other PRs in this series (part 4 of 4).
Files changed:
src/video_core/vulkan_common/vulkan_device.cpp: cap integrated GPUdevice_access_memoryto2304 MiB(3 GiBaggressive) on<= 18 GiBhosts and1536 MiB(2 GiBaggressive) on<= 10 GiBhosts.src/video_core/renderer_vulkan/vk_pipeline_cache.cpp: bound pipeline worker and background compile thread counts on iGPUs /<= 18 GiBhosts, evict pipelines unused for3600frames (instead of9000), and trim glibc heap after eviction / every1800frames.src/video_core/buffer_cache/buffer_cache.h: use192 MiB/384 MiBGC thresholds whenGetDeviceLocalMemory() <= 3 GiB.src/video_core/renderer_vulkan/vk_staging_buffer_pool.{h,cpp}: cap integrated stream buffer to64 MiBon<= 18 GiBhosts, use quarter-step size classes above1 MiB, and release staging buffers unused for60frames (largest first).src/video_core/renderer_vulkan/vk_multi_range_buffer.{h,cpp}: evict entries unused for300frames duringTickFramewithout synchronous waits during draw buffer binding.src/video_core/renderer_vulkan/vk_texture_cache.{h,cpp}: lowerSparseLayersCap(192 MiB) andTrimmedAstcArrayLimit(128 MiB) whenGetDeviceLocalMemory() <= 3 GiB, and bound ASTC transcode scratch to32 MiBfree /128 MiBin-flight on integrated or<= 4 GiBGPUs.Assisted-by: Antigravity (RAM profiling, implementation, and verification)
Type of change
Related issues
N/A
Testing
Standalone branch:
ninja -C build -j10 yuzu eden-cli testsbuilt cleanly ([41/41]).Games tested:
Checklist
Screenshots / logs
Measured on the 15.4 GiB Radeon Vega APU with the full 4-PR series:
GTT_deltadropped from4,603 MiBto3,353-3,416 MiB; 120s system swap delta dropped from+6,281 MiBto+1,522 MiB.GTT_deltadropped from3,397 MiBto2,395 MiB(-29.5%) and system swap delta dropped from+5,570 MiBto+525 MiB(-90.6%).Summary by CodeRabbit