Has anybody noticed occasional lag spikes in code, oftentimes up to 200 ms? This is lag we get no matter how few or how many threads we are running, how little and how much code we are running. I would simply like to know if anyone else has had this issue, and if it is fixable, or if it is simply something that needs to be dealt with.
How are you measuring this? How are you connected to the roboRIO? What does the Trip Time and Packet Loss look like in the DS log?
I’ve been measuring this through the wpilib timer. I haven’t been looking at packet loss, since the the majority of the code runs in threads outside of the main loop, so it shouldn’t depend at all on the ds.ill check it tomorrow, but I doubt I’ll see any correlation, let alone causation.