From 30b28a0a51cc4ee09c07cbca1a10cae02d05619a Mon Sep 17 00:00:00 2001 From: marcins78 Date: Tue, 8 Jan 2013 12:24:13 +0000 Subject: [PATCH] Dramatically decreasing the time for updates polling, that's because server will do the long poll on them anyway. --- gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-015/chat.js | 2 +- .../gemp-lotr-web/src/main/webapp/js/gemp-015/gameAnimations.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-015/chat.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-015/chat.js index 1cdf75873..2ede13183 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-015/chat.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-015/chat.js @@ -11,7 +11,7 @@ var ChatBoxUI = Class.extend({ maxMessageCount:500, talkBoxHeight:25, - chatUpdateInterval:2000, + chatUpdateInterval:100, playerListener:null, hiddenClasses:null, diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-015/gameAnimations.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-015/gameAnimations.js index 1b7517d76..db8fd381c 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-015/gameAnimations.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-015/gameAnimations.js @@ -916,7 +916,7 @@ var GameAnimations = Class.extend({ setTimeout( function () { that.game.updateGameState(); - }, 1000); + }, 100); if (!animate) that.game.layoutUI(false);