Skip to content

FF3: measure live Vulkan allocation bytes and resource counts - #62

Open
butilly wants to merge 2 commits into
wrapper-25from
fix/ff3-wrapper-live-memory-diagnostic
Open

butilly wants to merge 2 commits into
wrapper-25from
fix/ff3-wrapper-live-memory-diagnostic

Conversation

@butilly

@butilly butilly commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

Final Fantasy III (3D Remake), FF3_Win32.exe, thread 1568752739259777084. Follow-up to allocation diagnostic: direct-driver VK_ERROR_OUT_OF_DEVICE_MEMORY after 821 seconds at size 3686400, allocs 28575 / frees 24427, while reported game RSS grows from 1126 MB at 120 s to 7280 MB at 720 s and Android available memory stays above 8277 MB. Existing ZINK_DEBUG=mem reports only 253 MB of resource objects; compact reproduces and flushsync crashes at startup. No evidenced allocation-policy fix yet. This is the second/final diagnostic: track successful client allocation handles, remove on FreeMemory, print exact outstanding bytes with memory-type/size-order histogram and live wrapped image/buffer counts every 4096 successful allocations and at first failure. Preserve driver results, memory types, rendering, submission mode and Proton major/arch. Diagnostic data is freed on device teardown; bookkeeping failures are counted. Next run must compare live bytes and object counts through the previous failure window to distinguish retained backing allocations from resource-object growth or driver-internal memory. Diff whitespace check passes; CI compiles the Android package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant