VixenEngine icon indicating copy to clipboard operation
VixenEngine copied to clipboard

[VGraphics] DirectX instanced rendering of geometry.

Open MattGuerrette opened this issue 9 years ago • 1 comments

Currently, there is a significant performance issue with the rendering using DXRenderer. Multiple instances of the same model should be instance rendered as to alleviate some of the rendering overhead.

MattGuerrette avatar Oct 03 '15 07:10 MattGuerrette

Currently, constant buffer instancing of geometry has been implemented for DXModel class. It relies on the shader CB having transform array of size 1000, and binds the array of batched model transforms to this cb data.

There needs to be a check for if there are more than 1000 instances, and in that case there needs to be another draw call that will use the remaining instance transforms.

MattGuerrette avatar Oct 03 '15 17:10 MattGuerrette