English 中文(简体)
Juggernaut gem用于游戏服务器
原标题:Juggernaut gem for game server

它涉及最新的Juggernaut gem(https://github.com/maccman/juggernaut)

我要说的是,我想到的是,多斯游戏会。 这一加美非常简单:每个用户(根据Juggernaut的称呼)都属于“联合调查”的随机颜色。 用户可以向他转移任何方向。 这就是说。

Juggernaut应当运输所有数据,并将这些数据推向相关客户。

目前,想象结构如下:

(1) 客户(s)将 do和 player([1,[10,299]])的坐标推向铁路。

2) 铁路将这一数据推向Juggernaut

3) Juggernaut把坐标推回所有听取这一渠道的客户。

Juggernaut.publish("coordinates_channel", [1, [10,299]])

问题:

(1) 当需要为 j子上的 object子进行冲锋枪运动时,需要寄送太多的美国宇宙航空研究开发机构的请求。 例如,如果我直觉移动每秒20个餐厅,每秒需要20个餐厅。 不可接受。

2) Should i wrap Juggernaut.publish into asynchronous loop (using EventMachine for example)? Because, just immagine 1000 of clients (1000 of dots, and constant flow of data with updated coordinates)...

或者说,利用Juggernaut gem,可能会让错误的客户服务商? 你们认为这种执行是什么?

谢谢。

问题回答

网上Sockets/Long型投票/其他游泳技术相对较少,你的游戏会滞后。 我看到,通过网络袖珍进行实时游戏,它们要么滞后,要么打上了游戏机械,就像使参与者真正慢慢慢慢慢慢到低纬度。 古典日本宇宙航空研究开发机构已彻底排除了这一问题。

Here s some resources on improving lag
Valve Source Multiplayer Networking
Unreal Source Multiplayer Networking





相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

热门标签