iolite
iolite copied to clipboard
[Feature request] Persistence for for `io_debug_geometry`
The idea: Additionally to current params we can add:
- group index
- persistence flag
If persistence flag is set, we don't need to redraw debug shape on every tick. And we can cleanup with a new function clear_group(group_index)
.
The use case is when calculating the positions and rotations of the debugger shapes is expensive, and we dont want to do that on every tick.
Currently, to achieve this, I am cashing the position and rotation of the debug shapes in a array and reading it on every tick... and I was just wondering, if its possible to make this process more performant on engine side.