mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 18:09:58 -04:00
The review of b4e12f1c found that vk_device.c timed_alloc calls perf_mark_end after a failed vkAllocateMemory too, with 0 bytes, so the "device memory allocations" mark's count now takes in failed attempts, which vk_headroom.c on_allocate's old mark (VMA's callback after an allocation was made) never did. The time of a failed attempt held the frame as well, and VMA may try again with a smaller block after it, so the mark keeps it; the comment now says that failed attempts count with their time and 0 bytes and that the count can pass the number of allocations made. Comment only. vk_device.c compiles with the dev flags and adds no -Wall -Wextra warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
60 KiB
60 KiB