Network gameplay tearing

Network gameplay tearing

Postby eltomito » 25 Dec 2018, 23:56

Yo! I'm posting a lot today. I noticed that when I'm playing online with around 200ms round trip time (I hope it's what that number means), the game play gets erratic at times. My kart sometimes suddenly turns ninety degrees and jumps to a different position. It feels as if (pure speculation) my keyboard controls were routed thru the server. Is that how it works?

I'm asking because I *think* the local kart kontrols and position could be fully determined by the local instance of stk, unless I collide with other players.

Where do these sudden rips in my space-time continuum come from?
eltomito
 
Posts: 43
Joined: 15 Mar 2013, 09:25

Re: Network gameplay tearing

Postby benau » 26 Dec 2018, 01:57

first, i think you need to update apk 1 more time, because 20181225 seems to have 2 versions....

depends on the server you choose, (if you have artist debug mode on you can enable the network debbuging menu, and there is info about packet loss) usually if you have packet loss to server then your control event to server will be late

because the current design of stk network is that it's the server who playing the game
Image
benau
 
Posts: 71
Joined: 08 Dec 2015, 17:32

Re: Network gameplay tearing

Postby QwertyChouskie » 26 Dec 2018, 20:15

To expand on this further, the server is the ultimate source of truth in an online game. Due to STK being open-source and easily modable, the server can't rely on the client at all, otherwise cheating becomes a huge problem. In fact, the client in online mode is somewhat dumb, only using local states to help keep the visuals smooth. As a consequence of this design, if your internet connection has a lot of packet loss, a high ping, and/or a highly variable ping (e.g. packet 1 takes 213ms to arrive, packet 2 takes 286ms, packet 3 takes 195ms), you will experience some weirdness. On the plus side, cheating is basically impossible so long as the server owner is trustworthy.
Not an official dev, but a huge fan of STK!
User avatar
QwertyChouskie
 
Posts: 259
Joined: 29 Jun 2016, 14:57

Re: Network gameplay tearing

Postby eltomito » 26 Dec 2018, 20:17

Okay, then I guess there's no way to help it. Anyway, it works really well as it is when the round trip time is short.
eltomito
 
Posts: 43
Joined: 15 Mar 2013, 09:25

Who is online

Users browsing this forum: hiker and 1 guest