sourencho / ungroup_game

A multiplayer game about temporary alliances written with a custom engine in C++ and SFML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show variance for average values in server termbox metrics

sourencho opened this issue · comments

I was just testing my client against the remote server and although I had an "average drift" of 3 (gameplay should be smooth at this number), i was experiencing a lot of snapback.
You can kind of see it in this gif:
ungroup_snapback

I think this is because even though on average the metric was doing well, it had a lot of variance.
I pinged the server and saw a lot of variance:


64 bytes from 45.79.106.21: icmp_seq=45 ttl=54 time=9.170 ms
64 bytes from 45.79.106.21: icmp_seq=46 ttl=54 time=8.339 ms
64 bytes from 45.79.106.21: icmp_seq=47 ttl=54 time=55.735 ms
64 bytes from 45.79.106.21: icmp_seq=48 ttl=54 time=130.032 ms
64 bytes from 45.79.106.21: icmp_seq=49 ttl=54 time=8.619 ms
64 bytes from 45.79.106.21: icmp_seq=50 ttl=54 time=39.570 ms
64 bytes from 45.79.106.21: icmp_seq=51 ttl=54 time=7.623 ms
64 bytes from 45.79.106.21: icmp_seq=52 ttl=54 time=9.156 ms
64 bytes from 45.79.106.21: icmp_seq=53 ttl=54 time=9.065 ms
64 bytes from 45.79.106.21: icmp_seq=54 ttl=54 time=9.991 ms
64 bytes from 45.79.106.21: icmp_seq=55 ttl=54 time=26.506 ms
^C
--- 45.79.106.21 ping statistics ---
56 packets transmitted, 56 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 7.623/40.768/211.696/54.035 ms

How about both?
We can have a "warnings" panel that's spitting out warnings like server SPS < 20 or Client 3 Average Drift hit > 7 (20) while still showing the data in another panel.

This way it's still transparent what the warnings are based on and you don't need to rely on just the warnings' interpretation of the data

We could have a warning section per client and one for the server so one spammy client doesn't prevent us from seeing other warnings