One draw call per same poligon

Avatar
  • updated
  • Not a bug

Image 142

I have as much draw calls as much shapes I have on screen. Can the be batched together somehow?

Reporting a bug? please specify Unity version:
2019.3.15f1
Reporting a bug? please specify Shapes version:
2.3.1
Reporting a bug? please specify Render Pipeline:
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Not a bug

Unfortunately not - Shapes relies on Instancing rather than batching, because of all the shader properties and how many shapes share meshes. The polygon is an exception - all polygons and polylines are using a unique mesh, so they can't be instanced together

consider using the regular polygon though, if you want instanced hexagons specifically!

Avatar
Freya Holmér creator
  • Answer
  • Not a bug

Unfortunately not - Shapes relies on Instancing rather than batching, because of all the shader properties and how many shapes share meshes. The polygon is an exception - all polygons and polylines are using a unique mesh, so they can't be instanced together

consider using the regular polygon though, if you want instanced hexagons specifically!

Avatar

Oh, I see, regular polygons drawing in single calls, amazing, thank you.