VixenEngine
VixenEngine copied to clipboard
[VGraphics] DirectX instanced rendering of geometry.
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.
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.