View Issue Details
|ID||Project||Category||Date Submitted||Last Update|
|0024767||AI War 2||[All Projects] Bug - Gameplay||Apr 29, 2021 4:08 pm||Apr 30, 2021 9:53 am|
|Product Version||Beta 2.811 Brief Beta For Balance|
|Fixed in Version||Beta 2.813 Golem Relations|
|Summary||0024767: Multiplayer is out of sync a lot|
|Description||The latency is fine, measured by causing a change and seeing it happen instantly. However the ships are way way out of sync. For example I the host see a wave come in and i've already destroyed it and my friend thinks the battle is still raging on.|
|Tags||No tags attached.|
Apr 29, 2021 4:08 pm
multiplayerstats.png (813,063 bytes)
||Does that seem to last about 64 seconds, and then it fixes itself?|
* Fixed an inversion of boolean logic with Network_FrameToStartAnyProcessing on ships, which may have been one cause of ghosts; it's hard to be sure.
* Updated multiplayer clients to track how long it has been since they have heard from the host to be based on the number of sim cycles rather than using realtime OR game time.
** Doing it via gametime would have adverse effects with regard to the fact that things take realtime. But using realtime like we had been doing had adverse effects if the simulation got paused for a bit waiting on something. For instance, we don't want a temporary network outage to cause the client to suicide all units and then have to rebuild them.
** The method of using sim steps as the count (each one is approximately 100ms) lets us be far more granular with our checking, because we know that communications must be open for these to be progressing, and yet it is also game-speed-independent.
** Based on this, all the things that say "it's been x amount of time since this unit was touched by the server" are based on this metric rather than actual realtime (which is what it was before).
** Also based on that, we now have it set to murder ghosts after 4 seconds, rather than 60 seconds (curiously, it actually turned out to usually be 64 seconds.
||Ill make a new bug if this shows up again.|
||Seems much better on the beta branch. Ill open a new task if it comes back. The game is new so theres also a lot less units.|
|Apr 29, 2021 4:08 pm||greyhoundgames||New Issue|
|Apr 29, 2021 4:08 pm||greyhoundgames||File Added: multiplayerstats.png|
|Apr 29, 2021 5:12 pm||x4000Bughunter||Note Added: 0061266|
|Apr 29, 2021 7:58 pm||x4000Bughunter||Assigned To||=> x4000Bughunter|
|Apr 29, 2021 7:58 pm||x4000Bughunter||Status||new => resolved|
|Apr 29, 2021 7:58 pm||x4000Bughunter||Resolution||open => fixed|
|Apr 29, 2021 7:58 pm||x4000Bughunter||Fixed in Version||=> Beta 2.813 Golem Relations|
|Apr 29, 2021 7:58 pm||x4000Bughunter||Note Added: 0061271|
|Apr 29, 2021 8:33 pm||greyhoundgames||Note Added: 0061272|
|Apr 30, 2021 1:35 am||greyhoundgames||Note Added: 0061282|
|Apr 30, 2021 9:53 am||x4000Bughunter||Note Added: 0061286|