mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-03 12:57:27 +00:00
Imports were held to a configured budget only. With APS5_HOST_IMPORT_MIB at 6864 on a 15.4 GB PC, Village's imports reached the NVIDIA driver's pinning ceiling of about 6.56 GiB, and from there every import was tried and failed at vkAllocateMemory, 992 times. Where the device enables VK_EXT_memory_budget, the budget is now also at most the host heap's reported budget less its other usage and an eighth, in 64 MiB steps, read at most once a second. A vkAllocateMemory failure within an eighth of the budget, or the third in a row, lowers the budget to the live imports, so later imports are refused or evict instead of failing; an isolated failure further below only marks its range failed, as before. A remembered refusal stays remembered while the budget does not grow.