- Home /
Question by
geroppo · Mar 12, 2017 at 04:21 AM ·
performance optimizationinstancing
DrawProcedural vs DrawInstanced
Whats the difference? I'm currently doing "instancing" but using DrawProcedural, attaching a compute buffer with the vertex positions, and another with instance positions, and then accessing those properties on the vertex shader. But no matter what I do, DrawInstanced seems to be way more efficient than my method...but as far as I know they should be doing similar things under the hood.
My problem is that I'm using a compute shader to move the objects around, and DrawInstanced doesn't let me attach a compute buffer with said positions...
It's worth mentioning that with both methods I'm using the bare minimum data (as well as shader complexity) to render something, so data transfer is not an issue.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612113007im_/https://answers.unity.com/themes/thub/images/avi.jpg)