fix(agc): include retained storage images in recorder budget #5998
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5998"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T18:44:59Z.
What
Charge storage images retained by recorded batches only after their storage-cache ownership has ended. Use each image's allocation/guest size, and rely on the recorder's per-batch owner deduplication. This bounds evicted or invalidated images that a batch can release without charging cached images that remain alive independently of the batch.
Related: #5961
Tested
mainat9f03c4fe0b5cff4b58ab64e365207ee5421c8f5b.BUILD_TESTING=ONpassed.ninja -C /tmp/anyps5-storage-account-build -j8 agc_recorder_kept_bytes_testspassed (70/70 build steps), compiling and linking the modified AGC library and test binary.ctest --test-dir /tmp/anyps5-storage-account-build -R '^agc_recorder_kept_bytes$' --output-on-failurestopped before test code at the host CPU feature gate: this Xeon E5-1620 v2 lacks required instructions including AVX2/FMA/BMI/LZCNT.agc_run was 597/598 pass or skip, with the sole failure reproduced on plain main.44df21632, #5390, this PR (c1a9f6957), #5997, #6492, #6465 and #6464, the run reached 650 storage images and continued for about 40 minutes in Sky Garden without the earliervkAllocateMemory -2failure; VRAM stayed at 10.2–10.6 GB. It ended at the 50-minute time cap. This validates that composition on that setup, not this PR in isolation.git diff --check upstream/main...HEADpassed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-14T19:16:51Z.
Review: COMMENTED
Accounting for evicted storage images is the right target for #5961. Charging every image a draw or dispatch references is a different thing, though, and it will cost frame time.
KeptBytesBudgetis 512 MiB per open batch. When it is reached,BoundKeptBytessubmits the batch. Once in-flight kept bytes pass 1 GiB, itfinishes the oldest batch, which means a CPU wait on the GPU. With this change, every storage image a recorded draw samples or renders to counts toward that budget once per batch, throughkeepRecordedDraw, the dispatch paths and the recipe hits. At 4K, a deferred renderer's targets alone (G-buffer, depth, HDR colour, post chain at 33–130 MB each) come close to 512 MiB within one frame. Batches would then be cut every frame or more often, and with two or three frames in flight the 1 GiB bound starts waiting on the GPU. That removes the CPU/GPU overlap the recorder exists to provide.Those images are also not what the budget is meant to bound. A cached storage image stays alive through its cache entry whether or not a batch references it, so waiting for the batch frees nothing. The bytes that retiring a batch actually releases are those of images whose last owner is the batch: the evicted and invalidated ones in
cachedStorageTextureandClearCachedTextures, and theevictedvector inVulkanDevice::dispatch. Charging only those paths would bound the memory #5961 is about without putting backpressure on every frame.Two smaller points:
KeepStorageImageBytesbuilds astd::unordered_setfor each call, and it runs per recorded draw.KeepBytesalready deduplicates by owner per batch (keptOwners), so the set only adds an allocation per draw.agc_recorder_kept_bytesand theagc_driver_*tests on a supported CPU. It also needs the summary lines of one title before and after, so the number of submits per frame is visible.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T19:30:11Z.
Thanks, I agree with the distinction. I updated the accounting so cache-owned images do not add to
keptBytes; the image is charged only afterCached()becomes false. This preserves the eviction/invalidation case while avoiding batch submissions caused by large render targets that the storage cache still owns. I also removed the per-callunordered_setand rely onRecorder::KeepBytesto deduplicate each owner within a batch.The current head is
ad3c53f2, based on9f03c4fe. On that base, the focused AGC target builds successfully (70/70 steps) andgit diff --checkpasses. CTest still aborts before test code on this Xeon CPU feature gate. I cannot run Wolverine or provide a title submit/frame comparison here, so that runtime/performance validation remains outstanding.Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-14T19:38:49Z.
Thanks, that removes the per-frame backpressure: a cache-owned image now costs one atomic load per reference, and
keptOwnersdoes the deduplication.One case is still not charged, and it is the one #5961 is about. An image is referenced by a draw while it is cached (charged 0), then evicted from the storage cache while that batch still holds it. In the
for (const auto& image : evicted)loop incachedStorageTexture, only theShaderResourcesthatRemoveImagereturns getKeepStorageImageBytes. When no shared resource set references the evicted image, nothing charges it, and the batch keeps the whole allocation alive uncounted. Under eviction churn, these are exactly the images that pile up.Charging the evicted image itself in that loop (
recorder->KeepBytes(image.get(), image->BudgetBytes())when the recorder is recording andimage.use_count() > 1, so something besides the vector still holds it) covers that. A test that references an image in an open batch, evicts it by creating others past the budget, and checksOpenKeptBytes()would pin it.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T19:45:50Z.
Added eviction-time accounting for storage images retained by an open recorder batch, including the path with the shared resource cache disabled. The focused target builds, and local plus CI convention checks pass. CTest could not execute on this Linux host: the Xeon E5-1620 v2 lacks the emulator-required AVX2, FMA, BMI1/2, MOVBE, and LZCNT extensions. Current commit: c1a9f6957.
Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-14T19:54:37Z.
@MarcZX100 @tv7, could you review the separate sampled-view cleanup in #5997, particularly its lock ordering and preservation of resources referenced by recorded GPU work? My Windows build and 12 targeted Vulkan tests passed, but Wolverine remains untested. When testing #5998, could you also compare it with #5997 applied to check for regressions or additional benefit?
Imported from boykopovar/AnyPS5. Originally posted by tv7 on 2026-10-14T20:02:57Z.
@MarcZX100 a first Wolverine run on c1a9f6957, with the same local counters as in #5961. It was cut short, so treat it as partial.
Why it stopped early: the run did not abort on its own. The tool I run it from stopped it for low system memory after about 6 minutes (22:54:37 to 23:00:51 local), while the game process held about 17 GB of RAM. (An earlier version of this comment said the PC has about 16 GB usable. That was wrong: it has 32 GB, but its commit limit is only about 39 GB because the page file is small.) I haven't measured the game's memory on plain
mainin this scene, so I can't yet say whether the PR changes it. A full rerun with memory sampling is in progress.Setup: Windows 11, RTX 3070 8 GB (driver 617.14), GCC 15.2.0 UCRT, Release,
--to-intel, your head c1a9f6957 with the local counters cherry-picked on top.What the 6 minutes showed:
maine34c47921(#5961)vkAllocateMemory ... -2So in this window, the survivors are bounded and released in step with batches, and no device allocation failed. The eviction churn itself continues, as expected. I'll repeat the run for the full 900 s with more free RAM and post the result here.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by tv7 on 2026-10-14T20:39:07Z.
@MarcZX100 @Ondra97 full runs, as promised. Same setup as above (Windows 11, 32 GB RAM, RTX 3070 8 GB, driver 617.14, Release,
--to-intel, local counters on top), 900 s each, with the game's memory sampled every 30 s:maine34c47921(#5961)fd9525a2evkAllocateMemory ... -2So #5998 removes the abort here, and #5997 on top changes nothing measurable in this title, either way. That is consistent with the earlier count in #5961, where almost no survivor was held by a sampled view.
One thing worth knowing, though not caused by these PRs as far as I can tell: the game process itself grows to about 31 GiB private (up to 22 GiB working set) in this scene, in both runs. That leaves about 0.5 GiB of commit headroom on this PC (32 GB RAM, about 39 GB commit limit), and it is why the earlier run was stopped for low system memory. I haven't been able to compare against plain
main, becausemainaborts before reaching that point.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-14T20:45:54Z.
Checked c1a9f6957. The evicted image is now charged under its own pointer, and
KeepBytesdeduplicates it against the chargeKeepStorageImageBytesmakes for the same image through its resources, so nothing is counted twice. That covers the case I raised. @tv7's runs show the result: no-2, and survivors drop to single digits once batches retire.Those runs also show something that is now the bigger cost, though it isn't this PR's to fix: about 362,000 storage-image evictions in 900 s, roughly 400 per second. Each one destroys an image that the title evidently wants again soon, so it is recreated, re-uploaded from guest memory and possibly written back. In other words, the storage cache thrashes on an 8 GB card in this scene. It no longer crashes, but the creation and upload traffic will dominate frame time there. It's worth tracking separately against the cache budget (#5483 sizes it from the reported budget).
[storage]creation and upload counts per 10 s, next to the summary lines, would show how much of Wolverine's frame it costs.Imported from boykopovar/AnyPS5. Originally posted by tv7 on 2026-10-14T21:11:30Z.
@CnRJay the churn numbers you asked for, with #5483 for comparison. Same setup, 900 s each, with local counters counting LRU evictions and storage-image creations in
cachedStorageTexture:64ffeb8c9)-2, most evicted-but-alive imagesSo it is about 400 creations per second either way. The scene cycles about 1,400 distinct surfaces (about 5.4 GiB by
heldBytes, measured in #5961) through a cache of about 2 GiB, so a budget anywhere near 2 GiB thrashes about equally. #5483 neither helps nor hurts here. I haven't measured upload bytes per creation yet.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T01:24:14Z.
Thanks for the review and the follow-up validation. The current head charges an image only after storage-cache ownership ends, so batch references to still-cached render targets do not trigger batch splitting or waits. The full 900-second runs confirm the allocation failure is gone. The remaining 99.6% storage-image re-creation churn is now tracked separately in #6099, since the working set exceeds the cache budget and is a different issue.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T10:12:48Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/CMakeLists.txtL2020Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-15T18:56:11Z.
Tested on Linux x86-64 (Release build, lavapipe / llvmpipe LLVM 20.1.2), with c1a9f6957 merged into main
b7cedd900. This host passes the HostCpu check, so ctest runs.agc_recorder_kept_bytes,agc_driver_storage_cache_budgetandagc_driver_storage_cache_retained_batchpass.ctest -R '^agc_': 597 of 598 pass or skip (42 skip on lavapipe). The one failure,agc_driver_mesh_index_cache, aborts withLLVM ERROR: Cannot emit physreg copy instructioninside llvmpipe, and does the same on plain mainb7cedd900, so it isn't from this PR.StorageCacheBudget.cppcallsStorageTexture::BudgetBytes(), which this PR adds, so it doesn't build without the change.No title run here (no Wolverine).
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by mrfelek on 2026-10-16T01:04:07Z.
Astro Bot (PPSA21564): storage-image memory growth and
vkAllocateMemory -2on a 12 GB cardSetup
origin/main44df21632+ #5390 (ad572ebb1), Release, Linux, no #5998 in this buildTwo runs, both ended the same way
The
[texture] N storage images (X MiB)line grows steadily. The run then ends withpresentation failed: AGC graphics: vkAllocateMemory texture: Vulkan result -2, followed byterminate called(exit 134). The first run ended about 9 minutes in and the second about 35 minutes in.Memory-fix build (#5998, #5997, #6492, #6465 on top of #5390)
-2error, no crash. The run was stopped at the time cap, so it did not reach the point where the earlier runs failed.Not established
@coltken95 you tested #5998 on lavapipe earlier. If this data helps with the storage budget, we are happy to share the logs.
AI-assisted; the build and runs are from my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T15:59:32Z.
Thanks for the two Astro Bot runs and the matched 15-minute data point. This is useful evidence that the fix lowers growth at 400 storage images, but it does not yet establish whether the longer run avoids the prior 600–650-image failure window. Please add the result when the extended run finishes; I have kept that limitation explicit.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T16:33:24Z.
I reviewed the current #5997 head and posted the source review there. I found no lock-order cycle: storage-cache locking ends before the sampled-cache drain, and the other sampled-cache paths do not hold that mutex while acquiring the storage-cache mutex. Evicted images stay strongly held through cleanup, and recorder-kept descriptor resources preserve images used by recorded work.
I also compared #5997 with #5998 using a merge preview; they compose cleanly. #5998 may conservatively charge an image while a sampled view still holds it immediately before #5997 drains that view, but I found no correctness regression from that ordering. The current #5997 workflow passes conventions, eligibility and report; platform build jobs are skipped. I have not triggered or run a full platform build, so that remains unverified.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T21:23:19Z.
Thanks for checking the cache ownership and retained-image accounting across those paths. The Linux RADV run and the Wolverine results also close the validation gap I had called out; I appreciate the thorough review.
Imported from boykopovar/AnyPS5. Originally posted by mrfelek on 2026-10-16T21:27:27Z.
Astro Bot (PPSA21564), extended run as asked: Linux, RTX 3080 Ti 12 GB, NVIDIA 615.71.09. Build
main44df21632+ #5390 + this PR (c1a9f6957) + #5997 + #6492 + #6465 + #6464 (#6464 is needed past the start of Sky Garden; see below). About 40 minutes in Sky Garden with a DualSense, stopped by our 50-minute time limit, no crash.vkAllocateMemory ... Vulkan result -2.nvidia-smi, every 2 minutes).conservative rasterization with centroid interpolation is unsupported, at 400 storage images, before reaching that range.[texture] N storage imagesline counts every image created, not what is held, so VRAM is the better measure.AI-assisted: this comment was drafted with the help of Claude Code and checked against the logs by us.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T21:44:49Z.
Thanks for completing the extended run. Reaching 650 storage images and running about 40 minutes in Sky Garden without the earlier allocation failure is a useful result; the 10.2–10.6 GB VRAM range also gives a clearer measure than the created-image counter. I’ve updated my assessment: this validates the fix on this setup, with the tested composition including #5997, #6492, #6465 and #6464, and the run ending at the 50-minute cap rather than at a failure.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T14:35:14Z.
Rebased onto the latest
mainand kept both the existing dirty-image eviction coverage and the upstream retained-batch case. Convention and diff checks pass. I could not configure a fresh full build here because the checkout’s third-party submodule directories are empty; CI is now checking the pushed head.