This patch will extend the current network profiler to show the correct values for packet loss and round trip time.
I like to keep an eye on the network statistics to understand if I am experiencing network troubles which are temporary or permanent. The current network statistics window
does not report packet loss values in a way that is understandable.
The network statistics window of the profiler currently shows a raw value taken from a ENetPeer structure without giving a way to interpret it. The value
is a mean value over a window of time and as such should be reported as a percentage and should be reported with the variance.
This patch is a draft to include both values, mean and variance, and present them as percentage instead of an absolute value.
Currently the conversion from float to string is less than perfect. I would like to show this value with some digits but not too many. E.g. "0.00000000000001%" should be rendered as "0%".
As we have both mean and variance and the variance tells us how many digits are significant I would like to improve this conversion.