ecs-sandbox icon indicating copy to clipboard operation
ecs-sandbox copied to clipboard

Performance optimization

Open numpad opened this issue 3 years ago • 0 comments

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

numpad avatar Jan 12 '21 00:01 numpad