smileyface12349 / notorious-narwhals

Summer Code Jam 2021 on Python Discord - Team Notorious Narwhals
MIT License
6 stars 0 forks source link

Z sorting while rendering is slow, and needs to be optimized. #15

Closed Martysh12 closed 3 years ago

Martysh12 commented 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.

artem30801 commented 3 years ago

I suggest using python built-in deque library for this purposes

Martysh12 commented 3 years ago

Alright, one second