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

Use framebuffer line to improve performance #2

Open
follower46 opened this issue Jul 31, 2019 · 1 comment
Open

Use framebuffer line to improve performance #2

follower46 opened this issue Jul 31, 2019 · 1 comment

Comments

@follower46
Copy link
Owner

Currently updates to the frame buffer pain the pixels individually even though the painting can be expressed by a single line.

We should make a single line call with the two coordinates reducing updates and improving performance.

https://docs.micropython.org/en/latest/library/framebuf.html#framebuf.FrameBuffer.line

@follower46
Copy link
Owner Author

I'm not 100% sure that Bresenham's line algorithm will be more performant, but it's easy enough to test.
https://github.com/adafruit/micropython-adafruit-framebuf/blob/master/framebuf.py#L110

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