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

Loop times: Go brrrrrrrrr (~30-40ms savings) #29

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

qwertychouskie
Copy link
Member

updateSlot/totalUpdateSlots needs a re-think, right now it's a no-op. Getting this right will cut off another ~5ms of loop time. That said, everything should be fine in its current state, though it is technically possible (albeit quite unlikely) that the rebase broke something.

@qwertychouskie qwertychouskie changed the title PID: Implement F; Loop times: Go brrrrrrrrr (~30-40ms savings) Loop times: Go brrrrrrrrr (~30-40ms savings) Feb 25, 2024
@qwertychouskie qwertychouskie force-pushed the jacobsImprovements-rebased branch 4 times, most recently from 9bade71 to ea34847 Compare February 25, 2024 03:05
@qwertychouskie
Copy link
Member Author

@stheyounger This is going to be even more important with the extra color sensors being added. 4 color sensors updating all 4 values every loop is 16 values, which will be ~80ms per loop just on the color sensors.

@qwertychouskie qwertychouskie force-pushed the jacobsImprovements-rebased branch 2 times, most recently from 93cdf00 to 1d557ac Compare March 3, 2024 01:33
Should help reduce load on the GC a fair bit
Only update one color read per sensor per loop cycle.  Certain aspects of collector sensing now theoretically have slightly longer peak possible latency, but the overall loop time savings are well worth it.

Tested to function via telemetry, needs real drive testing as well.
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.

1 participant