Changed polling strategy.

This commit is contained in:
marcins78@gmail.com
2013-01-09 00:41:27 +00:00
parent 9346ad06f0
commit c295385df4
4 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ import javax.ws.rs.core.Response;
public abstract class AbstractResource {
protected final boolean _test = System.getProperty("test") != null;
protected static long _longPollingLength = 5000;
protected static long _longPollingLength = 10000;
protected static long _longPollingInterval = 200;
@Context

View File

@@ -11,7 +11,7 @@ var ChatBoxUI = Class.extend({
maxMessageCount:500,
talkBoxHeight:25,
chatUpdateInterval:1000,
chatUpdateInterval:100,
playerListener:null,
hiddenClasses:null,

View File

@@ -916,7 +916,7 @@ var GameAnimations = Class.extend({
setTimeout(
function () {
that.game.updateGameState();
}, 1000);
}, 100);
if (!animate)
that.game.layoutUI(false);

View File

@@ -658,7 +658,7 @@ var GempLotrHallUI = Class.extend({
if (!skipReload) {
setTimeout(function () {
that.updateHall();
}, 3000);
}, 100);
}
}
}