mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-20 16:31:57 +09:00
[MG_Backend, MG_IntegrationTest] (P7): the wire watermark's sync point also fires above 1024 parked stores, so small orphans that never reach the byte budget are bounded by count
Measured on bsl-esc-menu-854 (spawn, lavapipe) with the byte watermark alone: the dead VkBuffers at the end fell from 25,935 to 32, but one stretch with no submission still parked 12,498 stores in 39.5 MB - under 64 MiB, so nothing forced a sync. A fixed ceiling (VkBufferManager::kWireDeferredCountCeiling = 1024, not a knob) now rides the same WaitForSubmitIndex call; MOBILEGL_IPC_WIRE_DEFERRED_MB=0 still turns both triggers off. MagmaWireReclaimScenario gains the case: 3000 respecify-and-draw rounds of a 256-byte store in one frame (750 KB, far below the lane's 8 MiB). Red before this commit on inproc and spawn (live peak 3001 vs a bound of 1027), green after (1025, two forced syncs).
This commit is contained in:
@@ -304,6 +304,10 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
||||
// takes - flush what is recorded, wait for it - and sweep again, which retires every
|
||||
// parked store, because none can be tagged past the sync point it just waited out.
|
||||
void EnforceWireDeferredWatermark();
|
||||
// ...and the same sync point when more than this many stores are parked, whatever their
|
||||
// bytes (see the definition for the measurement). Not a knob: it bounds an object count
|
||||
// the byte budget cannot see, and MOBILEGL_IPC_WIRE_DEFERRED_MB=0 disables it too.
|
||||
static constexpr SizeT kWireDeferredCountCeiling = 1024;
|
||||
// Teardown: the caller has proven the device idle (Shutdown / RecreateTransientArenas).
|
||||
void DestroyAllDeferredWireReleases();
|
||||
// THE one Fatal{ResourceUnavailable, "buffer-write-sync"} site (rule I: no second abort
|
||||
|
||||
Reference in New Issue
Block a user