Open auscompgeek opened 4 years ago
In the meantime, if you would like your update rate to be consistent regardless of what packages are installed, you can use the NetworkTablesInstamce.setUpdateRate
method.
Robot code always uses pyntcore, and so will always have a default update rate of 100 ms.
I feel like we should change pyntcore's default to be 50ms?
Given the performance issues we had last year, I'm not sure I'm comfortable with doubling down on the doubled update rate here.
Well, it's almost 2022. Which way do we want to go? I'm still in favour of matching ntcore here.
FIne.
If pyntcore is installed, the default update rate will suddenly change, which I would expect nobody installing random packages would expect to happen. This also makes the docs inconsistent with pyntcore.
The following line needs to be changed to be every 100 ms instead:
https://github.com/robotpy/pynetworktables/blob/812e615d4e86858e5844ad9c1bc4015715f3bd76/_pynetworktables/_impl/dispatcher.py#L71