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

Optimized fake brightness code #1915

Merged
merged 1 commit into from
Feb 18, 2024

Conversation

NotherNgineer
Copy link
Contributor

@NotherNgineer NotherNgineer commented Feb 17, 2024

When applying fake brightness (darkening) to each pixel, just shift the pixel value right and apply a mask. Performance should be much improved vs 2.0.0 when the screen is dimmed.

When un-applying the fake brightness to save a screenshot or transmit screen across serial USB, just shift left.

Test version on Discord:
https://discord.com/channels/719669764804444213/722101917135798312/1208559442790973471

@NotherNgineer NotherNgineer marked this pull request as ready for review February 17, 2024 20:38
Copy link
Contributor

@zxkmm zxkmm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!! It’s really nice improvement!!! 💕💕

@NotherNgineer NotherNgineer merged commit a1f7010 into portapack-mayhem:next Feb 18, 2024
3 checks passed
@NotherNgineer NotherNgineer deleted the brightness branch February 19, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants