Closed Martysh12 closed 3 years ago
When the .render() function is called - the renderer sorts all objects on the fly. It's really slow. My solution is to sort objects only when added, optimizing the renderer by a lot.
.render()
I suggest using python built-in deque library for this purposes
Alright, one second
When the
.render()
function is called - the renderer sorts all objects on the fly. It's really slow. My solution is to sort objects only when added, optimizing the renderer by a lot.