1

我一直在谷歌上寻找这个答案,我只是找不到我的问题的答案。我有一个 2D rpg,我想用它来构建一个客户端-服务器架构。我如何“同步”事物?由于滞后,当数据到达另一端时,一切都“回到了过去”。即使使用客户端插值等,我如何在客户端和服务器之间获得“公共时间”?即,如果从客户端到服务器需要 60 毫秒,-服务器如何知道它是 60 毫秒,还是 90、120 等?唯一的办法就是以某种方式在它们之间有一个共同的时间,因为我可以使用滞后计算来更好地同步事物?我完全迷失了他的:(

谢谢你的帮助

4

1 回答 1

1

Take a look at this question. Since it's not a first person shooter you won't need to send as much information so it should be easier to add in techniques such as prediction and interpolation.

Take a look at the Steam wiki article mentioned in the answer, it's a good starting point.

于 2011-12-23T17:40:38.130 回答