branchrust_reboot/main/cpu_batching_instancedcancel
5 Commits over 31 Days - 0.01cph!
Un-check Read/Write on all meshes
Added "Unmark Readable" Tool to remove Read/Write from meshes
Fixed instancing to work with non-read-write meshes
Commiting prototype instanced rendering that piggybacks off normal CPU batching system
- hooks into normal batching system
- uses normal occlusion culling system
- instead of adding meshes to CPU batching, pushes meshes into arrays to be instanced rendered
- uses Graphics.RenderMeshInstanced() which is slower due to copying to GPU every frame
- currently same rendering speed as CPU based system, however can be optimized with multidraw & command buffers
- convar `batching_instanced_mode` switches between CPU rendering and instanced rendering (to compare)