This article is the second part of how to improve performance of my Wave Engine games. So if you do not know it yet, I recommend you read the first article before you start.
In the first article we showed how Wave Engine´s render works and how many draw calls are need to render entities. In this second article we are going to review two interesting techniques that allow you to reduce the number of draw calls to render your scenes.
This technique allows you to group many meshes on a single mesh so the engine will be able to render multiples entities as one. But some limitations exist that we need to know before we use it:
- It is necessary to mark your entities as Static, this means that these entities cannot be translated, rotated or scaled when running your
- All entities must share the same material instance.
To mark an entity as Static you can set the Static checkbox on Wave Editor´s Entity Details Panel: