- The VertexBuffer is limited to 65535 vertex.
- The IndexBuffer is limited to 983040 index.
- In theory, you could have up to 983040/3 = 327680 triangle in one draw call.
- In particle(using quads), you could have up to 65535/4 = 16383 particle max per draw call.
- Shaders length can only contain a maximum of 200 opcodes.
- The drawTriangles limited to 32768 calls per present call.
Optimization:
- reduce draw call.
- reuse material and batch rendering.
- upload minimum number of constants.