Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance optimization #43

Open
numpad opened this issue Jan 12, 2021 · 0 comments
Open

Performance optimization #43

numpad opened this issue Jan 12, 2021 · 0 comments
Labels
code-quality Purely backend related, the player won't notice anything but it makes developing easier. engine engine improvements, nothing the player will really notice. rework need to rework an existing feature

Comments

@numpad
Copy link
Owner

numpad commented Jan 12, 2021

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 numpad added code-quality Purely backend related, the player won't notice anything but it makes developing easier. engine engine improvements, nothing the player will really notice. rework need to rework an existing feature labels Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-quality Purely backend related, the player won't notice anything but it makes developing easier. engine engine improvements, nothing the player will really notice. rework need to rework an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant