Ralith / hypermine

A hyperbolic voxel game
Apache License 2.0
160 stars 20 forks source link

Consider reducing draw calls in voxel rendering #51

Closed Ralith closed 4 years ago

Ralith commented 4 years ago

We currently make one draw call per voxel chunk. When in the middle of the right sort of valley, this can add up to several thousand draw calls, which may waste significant CPU time. If profiling confirms this, multi-draw-indirect could be used to reduce to a single call, at the cost of maintaining an indirect buffer identifying the surfaces to draw each frame.

Ralith commented 4 years ago

5500 draw calls on my i5-8550u takes about 2.7ms with profiling disabled, so I'm calling this a nonissue for the time being.