Quote:
Originally Posted by Tom Bottiglieri
Another thing to watch out for is SmartDashboard stuff. We had a SmartDashboard :: putData in one of our controller classes (that runs iteratively in a separate thread) which pegged us near 100%. Calling this 50 times less per second (aka 50HZ to 0Hz) brought us from near 100% CPU usage to ~50%.
|
Thanks Tom, We'll look at that as we are using the SmartDashboard.
Quote:
Originally Posted by Ether
This caught my eye.
Why couldn't you instrument each thread in your code to read how long each thread takes to execute and whether or not it's being scheduled at the expected rate.
|
Thanks Ether, Yes we can do that, if we need to. Just didn't want to resort to doing that if we didn't have too.