ecs-sandbox
ecs-sandbox copied to clipboard
Performance optimization
Instead of depth sorting entities based on their CPosition on the CPU before rendering back-to-front we could remove the sorting and simply discard
all pixels of a CBillboard which are transparent.
Pros:
- possible performance improvement over current system [0]
Cons:
- No more semi-transparency [1]
[0] : Still need to benchmark this on low and high end systems. But less work on the CPU would definetly be benefitial
[1] : Semi-transparency can be made possible again, but requires work (two systems, one for semi-transparent billboards and one for "fast" billboards) and coordination between those two