在线游戏客户如何能够通过互联网如此快速地交换数据? [英] How online-game clients are able to exchange data through internet so fast?

查看:113
本文介绍了在线游戏客户如何能够通过互联网如此快速地交换数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们想象一下非常简单的游戏...我们有一个迷宫,有两个玩家试图通过互联网实时发现退出.

Let's imagine really simple game... We have a labirinth and two players trying to find out exit in real time through internet.

在每次移动游戏中,客户端应将玩家的坐标发送到服务器,并接受其他客户端的当前坐标.如何使这种交换如此之快(就像所有现代游戏一样).

On every move game client should send player's coordinates to server and accept current coordinates of another client. How is it possible to make this exchange so fast (as all modern games do).

好的,我们可以使用内存缓存或类似技术来减少服务器端的数据挖掘操​​作.我们也可以使用最快的Web服务器等,但是在时间安排上仍然会遇到问题.

Ok, we can use memcache or similar technology to reduce data mining operations on server side. We can also use fastest webserver etc., but we still will have problems with timings.

所以,问题是...

  1. 客户端通常使用哪些协议游戏客户端与服务器交换信息?
  2. 什么样的服务器技术可以解决这个问题?
  3. 在游戏等过程中有什么算法可以延误战斗.

推荐答案

通常具有网络插值和预测功能. Gamedev是很好的资源: http://www.gamedev.net/reference/list .asp?categoryid = 30

Usually with Network Interpolation and prediction. Gamedev is a good resource: http://www.gamedev.net/reference/list.asp?categoryid=30

也请查看以下内容: http://developer.valvesoftware.com/wiki/Source_Multiplayer_Networking

这篇关于在线游戏客户如何能够通过互联网如此快速地交换数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆