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

Address performance of drawing with transparency #16

Open
Devin-Mix opened this issue Mar 29, 2023 · 0 comments
Open

Address performance of drawing with transparency #16

Devin-Mix opened this issue Mar 29, 2023 · 0 comments
Assignees
Labels
bug Something isn't working P2 Moderate-priority issue or feature that should be addressed in a timely manner but lacks urgency

Comments

@Devin-Mix
Copy link
Owner

Currently, alpha drawing of the GUI is using the PyGame SRCALPHA flag, which provides per-pixel alpha for the surface which is being drawn or blitted to the screen. In theory this is fine and gives better results, but due to the lack of hardware acceleration support in PyGame, this becomes incredibly intensive on the CPU thread and decreases performance. In order to alleviate this, surface-level alpha should be used for all transparency effects instead.

@Devin-Mix Devin-Mix added bug Something isn't working P2 Moderate-priority issue or feature that should be addressed in a timely manner but lacks urgency labels Mar 29, 2023
@Devin-Mix Devin-Mix added this to the Presentation 3 milestone Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2 Moderate-priority issue or feature that should be addressed in a timely manner but lacks urgency
Projects
None yet
Development

No branches or pull requests

2 participants