NVIDIA / Q2RTX

NVIDIA’s implementation of RTX ray-tracing in Quake II
Other
1.22k stars 184 forks source link

Dispatch acceleration structure builds in batches #410

Closed pixelcluster closed 1 month ago

pixelcluster commented 1 month ago

It is inefficient to record multiple vkCmdBuildAccelerationStructuresKHR back-to-back - for example, RADV will implicitly barrier between each build. To fix this, record AS build parameters into a temporary batch struct and call vkCmdBuildAccelerationStructuresKHR once for the entire batch.