阅读背景:

使用AJAX调用减少服务器CPU使用率

来源:互联网 

I am working on a multiplayer HTML5 game that makes use of jQuery to poll a server for game state. At present, I'm querying the server with a .ajax call every 2000ms, to give the impression of real-time updates. I'm really not pushing too much data through...mainly just x/y position and a few character attributes...with only a few players being alive in my game instance.I am working on a multiplayer HTML5 game that m




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: