summaryrefslogtreecommitdiff
path: root/src/common/settings.cpp
diff options
context:
space:
mode:
authorGPUCode <geoster3d@gmail.com>2023-04-08 21:53:13 +0300
committerGPUCode <geoster3d@gmail.com>2023-05-01 23:13:24 +0300
commit50791cb974e462c97dc133a619ddc2066961b526 (patch)
treebf385acd61178b4f07dd220077c8a3ef528a9203 /src/common/settings.cpp
parent2ad9acf795fcb9f0f01ed85e1b4f1accd9c3965d (diff)
renderer_vulkan: Fix crashing when updating descriptors
* During pipeline configure the function would acquire some payload space from the descriptor update queue, write the descriptor data on the GPU thread and give the scheduler a pointer to the beginning of said space to update it later. TickFrame resets the payload cursor, used to track acquires, back to the beginning of the buffer. This wasn't a problem before since WaitWorker was called at the end of the frame but now it is. If a frame writes to a cursor before the scheduler catches up, it will crash * To fix this the payload buffer has been increased to account for the in flight frames that are allowed to exist now. TickFrame will switch between the payload spaces instead of resetting
Diffstat (limited to 'src/common/settings.cpp')
0 files changed, 0 insertions, 0 deletions