UpdateBuffer() #214
-
Just a quick question about I try to avoid doing allocations per frame in my app. Really hoping there is some way to structure the original source data so that it is already ready to be copied directly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It is because GPU-local memory is generally not directly accessible by GPU. You have to use temporary memory that CPU can write to and GPU can read from.
Use dynamic buffers. They allow writing to GPU-readable memory directly.
Allocation for Update buffer is very fast. The performance bottleneck there is state transition required to perform the copy operation. |
Beta Was this translation helpful? Give feedback.
It is because GPU-local memory is generally not directly accessible by GPU. You have to use temporary memory that CPU can write to and GPU can read from.
Use dynamic buffers. They allow writing to GPU-readable memory directly.
Allocation for Update buffer is very fast. The performance bottleneck there is state transition required to perform the copy operation.