mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-24 20:51:35 +00:00
[vulkan] Move dynamic draw data into device memory
This gets the dynamic data closer to the gpu, so should make a difference when there's a lot going on. However, for simple tests, it made no difference.
This commit is contained in:
parent
d908016606
commit
57282702ba
1 changed files with 2 additions and 1 deletions
|
@ -310,7 +310,8 @@ create_buffers (vulkan_ctx_t *ctx)
|
|||
dctx->draw_resource[1] = (qfv_resource_t) {
|
||||
.name = "draw",
|
||||
.va_ctx = ctx->va_ctx,
|
||||
.memory_properties = VK_MEMORY_PROPERTY_HOST_CACHED_BIT,
|
||||
.memory_properties = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT
|
||||
| VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT,
|
||||
.num_objects = (2 * frames) + (frames) + (frames),
|
||||
.objects = dctx->dvertex_objects,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue