Skip to content

Conversation

DS-Aditya-928
Copy link
Contributor

@DS-Aditya-928 DS-Aditya-928 commented Sep 17, 2025

Made a change to the fillEllipse function so that the horizontal lines are only drawn when they're at their longest. This eliminates instances of a longer horizontal line being drawn over a shorter one by only drawing the longer line.

This results in a 36% speed increase when tested on drawing 1000 filled ellipses on an ESP32 with a SH110x display.

No known limitations, the only changes made are to the Adafruit_GFX.cpp file. I just moved the drawLine calls so that they're only called when we move to the next line vertically.

@DS-Aditya-928
Copy link
Contributor Author

@ladyada for review.

@ladyada ladyada merged commit 4c89798 into adafruit:master Sep 17, 2025
1 check passed
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