Closed Dromader2137 closed 3 months ago
Vulkano doesn't enable validation layers itself. If you mean vulkano's homegrown validation, you can use the unchecked versions of the functions.
Can this homegrown validation cause command buffer (4k draw calls) build to take like 15ms?
I don't know. You will have to test that.
It's happening in my project, but I will check with the unchecked functions
(You should only need to use _unchecked
draw commands. The rest should be fine.)
Thanks for the tip
It unfortunately changed nothing
That's quite strange. For me it usually cuts the recording time in half. I can't explain it doing quite literally nothing.
It needs to be noted however that vulkano's current command buffer implementation is very inefficient. It does a heap allocation per command + dynamic dispath when the command is actually recorded and when deallocating that heap allocation. I'm working on rewriting all of synchronization right now to fix this and a whole bunch of other issues.
You can use a profiler and get at the bottom of what the actual slowdown is due to. However I think it would be more optimal in any case if you recorded one draw command instead of 4k.
This is the command buffer recording code, is there something very wrong with it?
You can use a profiler and get at the bottom of what the actual slowdown is due to. However I think it would be more optimal in any case if you recorded one draw command instead of 4k.
Yeah I might have to do that, I was just surprised that it causes my game to run at 20fps
Didn't expect the secondary command buffers. Can't say that I recommend them, certainly not with this here inefficient command buffer, but nothing immediately stands out as super inefficient here. I can only recommend to again profile if you must know, but either way a single draw_indexed_indirect_unchecked
command is going to be the most efficient with this or the new command buffer.
Thanks, I guess its time for me to learn indirect
Version of vulkano: Latest OS: Linux GPU Driver: Nvidia 550
How can I disable validation layers as they seem to be tanking my command buffer creation cpu performance?