Repository navigation
nvn: enable async texture pool slot updates by default on Mali - #485
Conversation
…rebases, PR mamcjr#485 async slots, Mali perf ABBA & release rollout
|
Thanks, the lifetime hardening is good and it fixes the comment we asked about on #454. Before merging it needs the tests we asked for on #454, on a Mali: inventory open/close loops, a long session (30+ min), and the in-place reboot. Your evidence is ~3 minutes in towns. #485 and #454 edit the same lines, so only one can land: I'd take #485 (Mali, with the hardening) and then #454 becomes the one-line switch to every device, with its Adreno numbers. |
vk_driver_is_mali() + vk_slot_async_default() enable queued slot_apply updates on Mali without blocking the game thread on vk_async_drain(). Also drain pending retired slot references in nvnTextureFinalize and after vk_async_drain() in nvnTexturePoolFinalize, reset slot_old storage on reboot, and extend test_nvn_lifetime.c to cover both sync and async paths.
5eea75f to
8bb3c02
Compare
|
Rebased onto
|
…ew fixes, Mali A/B & stress validation, and release APK update
|
Thanks, those are exactly the tests I asked for (65 inventory cycles, 5 reboots, 32 min with flat memory). Merging. If anyone with an older Mali (before r49) reports trouble, |
…sync_default true) The queued write (mamcjr#485) was the default on low-RAM devices and Mali; it is now the default everywhere. On an Adreno 750 (Snapdragon 8 Gen 3, Turnip, game 1.8.2) at 60 fps: 44.2 fps draining vs 53.4 fps queued (two runs each, alternated), the GPU idle 4.9 vs 0.9 ms a frame. LARECOMP_SLOT_DRAIN=1 keeps the wait. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…erged), grass triage parked, Master Plan & device scope
Summary
Enables deferred/async texture pool slot updates by default (
LARECOMP_SLOT_DRAINunset ->0) on ARM proprietary Mali (vk_driver_is_mali()), matching the existingvk_low_ram()path instead of drainingvk_async_drain()on every guest descriptor pool rewrite.runtime/nvn/vulkan/{vk.h,device.c}: Adds#ifdef __ANDROID__vk_driver_is_mali()(checksVK_DRIVER_ID_ARM_PROPRIETARYwheng_driver_propsis supported, orvendorID == 0x13B5whendriverID == 0) andvk_slot_async_default()(vk_low_ram() || vk_driver_is_mali()).runtime/nvn/objects.c: Defaultsg_slot_drainto!vk_slot_async_default()(overridable viaLARECOMP_SLOT_DRAIN=0/1), ensuresslot_retire_pending()retires stale slot arrays cleanly innvnTextureFinalize(outsideg_live_lock) and aftervk_async_drain()innvnTexturePoolFinalize, and frees/resetsslot_old+g_slot_drainacrossnvn_reset(slot_old_reset()).tools/test_nvn_lifetime.c: Covers defaultLARECOMP_SLOT_DRAINbehavior,vk_slot_async_default()+ FIFO async slot queue ordering, and explicitLARECOMP_SLOT_DRAIN=1override.Verification
test_vulkan_compat.py(16/16),test_vulkan_startup.py(33/33) PASS.SM-X730, Mali-G925 MC12r49p1):test_nvn_lifetimePASS (0failures);./gradlew :app:assembleDebugPASS.SM-X730, 60 FPS target acrosszora-plaza,korok-plaza,kakariko-day):slot drains 0 (0 ms)recorded across86/86[vk-prof]2-second windows (0descriptor/lifetime errors,0visual artifacts).v0.4.6-beta(0897fb8); touches onlyobjects.c,device.c,vk.h, andtest_nvn_lifetime.c(zero overlap with open PRs#436,#475,#480,#481,#482,#483).