Render pipeline optimization
heinezen opened this issue · 0 comments
heinezen commented
Ideally, the renderer must be able to handle several thousands of objects without significant performance loss. While we're not processing super complex geometry like other engines, it's good to keep performance in mind, so that system requirements stay low. There are a few general techniques that we can use:
Pre-rendering Optimizations
Rendering optimizations
- Geometry shader for sprites: Draw sprites by passing a single vertex using
GL_POINT
and calculate the the 4 sprite corners in the geometry shader. This offloads some of the sprite scaling/positioning to the GPU.