mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
[vulkan] Use cached memory for the bsp index buffer
Since it is updated every frame, it needs to be as fast as possible for the cpu code. This seems to make a difference of about 10us (~130 -> ~120) when testing in marcher. Not a huge change, but the timing calculation was wrapped around the entire base world pass, so there was a fair bit of overhead from bsp traversal etc.
This commit is contained in:
parent
0b912795d0
commit
7ef9aab7f3
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ Vulkan_BuildDisplayLists (model_t **models, int num_models, vulkan_ctx_t *ctx)
|
|||
"buffer:bsp:index");
|
||||
bctx->index_memory
|
||||
= QFV_AllocBufferMemory (device, bctx->index_buffer,
|
||||
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT,
|
||||
VK_MEMORY_PROPERTY_HOST_CACHED_BIT,
|
||||
index_buffer_size, 0);
|
||||
QFV_duSetObjectName (device, VK_OBJECT_TYPE_DEVICE_MEMORY,
|
||||
bctx->index_memory, "memory:bsp:index");
|
||||
|
|
Loading…
Reference in a new issue