How are Splits calculated in the Activities app?

The splits shown in the Activities app for workouts generated by my Watch app are basically nonsense. How does Apple's Activities app calculate splits? Does it rely on the samples added to the workout using addSamples? If so then what sort of granularity should be used? The documentation talks about both 5 minutes and 5 seconds, which are very different.


I use 5 minute intervals, which would explain the incorrect splits if they are used to calculate them. If so then what intervals does anyone recommend using instead? The documentation says that 5 second intervals require a lot more memory and processing, so I don't want to go that far unless I have to.


If I stored 1 mile or 1 kilometre intervals (or fractions thereof) then would the splits look dramatically better without increasing the number of samples too much? Or do the sample intervals need to be constant in terms of time?


I can't find any detailed documentation on this, so it would be great if someone could help. Thanks.