-
Notifications
You must be signed in to change notification settings - Fork 1.3k
vectorio: speed up polygon #2888
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice speedup! One suggestion to remove duplication. All good otherwise.
e2dabae
to
03bd9eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now needs a .po merge. (Allow maintainers to edit and I can fix it for you. ;-) )
Ah there's that silly button. Fix away and thanks :-D |
@WarriorOfWire For some reason I couldn't push to your branch still. I pushed the merge to my corresponding branch if you want to snag it from there. |
462355c
to
18324e4
Compare
This PR got too dirty; I've rebased the intended changes on master to keep the changelog clean. Should be good to go. |
This change takes polygon from 126k pixels per second fill to 240k pps fill on a reference 5 point star 50x66px polygon, updating both location and shape at 10hz. Tested on an m4 express feather. As a curiosity, the flat-out fill rate of a shape whose get_pixel is `return 0;` fills just shy of 375k pixels per second.
18324e4
to
a78f245
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you!
Takes polygon from 126k pixels per second fill to 240k pps fill
on a reference 5 point star 50x66px polygon, updating both location and shape
at 10hz. Tested on an m4 express feather.
As a curiosity, the flat-out fill rate of a shape whose get_pixel is
return 0;
fills just shy of 375k pixels per second.
Baseline:
This change: