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

Round viewport #3330

Open
flykarlos opened this issue May 16, 2024 · 0 comments
Open

Round viewport #3330

flykarlos opened this issue May 16, 2024 · 0 comments

Comments

@flykarlos
Copy link

Hello Bodmer
I am using your library and each and every time I'm amazed by versatility it provides.
I am working now on round display with 480x480 resolution using third party driver and tft_espi sprites as framebufers. As you probably already guessed with this big resolution writing a sprite to display takes pretty long time, that is why I started to think how to decrease writing time.
Round displays are seen by its drivers and library as square displays, this means so around 21% of its pixels are "virtual", yet pushing a sprite to display still writes to this virtual pixels too. To speed up pushing sprite to display it would be great to write to only real, visible pixels that round displays have. Now I should mention viewports, as to my understanding this is exactly what we should use in such cases. But viewports can only be rectangular as for now.
Have you ever considered adding rounded viewports to the library? Is this even possible? Or mathematics involved in calculating if pixel is within screen area would take similar time as writing to virtual pixels?
Thanks again for your amazing work!

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

No branches or pull requests

1 participant