Imagine yourself a vertex array in OpenGL representing blocks in a platform game.
But some vertices may be not used.
The environment is dynamic, so there always some vertex may suddenly become invisible.
What is the best way to make them not draw? Graphic cards are complicated and it's hard to predict what is best approach.
Few best ways I can think of:
- delete and move all vertices after deleted one to fill freed space (sounds extremely inefficient)
- set positions to 0
- set transparency to maximum
I could of course benchmark, but what on my computer works faster doesn't have to on other.