BlueEngine
BlueEngine copied to clipboard
optimize render sorting performance
Hey Elham, Cool project!
This optimizes your render sorting by reducing sorting size(code isn't using &Arc reference and it only increase memory swap time while sorting(2x copy time)) and also pre-allocated the buffer so it doesn't heap allocate in the program render loop.
You can remove the unsafe part yourself later by adding lifetimes.
Important Note: If you merge this, you owe me a Kabuli Pulu!