I am working on a fullscreen datafield (for an Edge device) and doing some benchmarking to try get an idea of how much load I'm putting on the system. As expected, most of the CPU load is in onUpdate(dc). I am trying to figure out what would be a safe maximum execution time (on my Edge 830) for it to still work smoothly on older/slower Edge devices. Initially I thought something like 100ms would be safe having seen that onUpdate(dc) is typically only called once a second, however after connecting a Varia Radar I noticed onUpdate(dc) is now called much more often - around 4 times a second! This discovery concerns me - what other peripherals/factors could impact the update rate? Is there a maximum?
Does Garmin provide any recommendations on CPU usage, or direction on estimating or limiting the impact of an app on battery life?