Imperia Online International
April 24, 2024, 03:54:01 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: About IO clock and attack times  (Read 897 times)
0 Members and 1 Guest are viewing this topic.
clapdown
Private
*

Karma: +0/-0
Offline Offline

Posts: 8


« on: January 28, 2012, 02:24:55 AM »

Hi everyone. Does anyone had paid any attention to IO clock before? The IO time runs on GMT + 2 hours background right? Why it doesn't run precisely? It's sometimes one minute ahead or couple minutes away during all day. It doesn't make any sense. Example: I have sent my army to attack enemy when it was 12:00:00 IO time, distance 30 IO miles, attack time - 40 minutes. My army must return after 1 hour and 20 minutes (40 minutes fowards and 40 backwards). My army returns 13:20:00 (and no, IO calculator doesn't cost a sec for a battle). What did I see? After first 20 minutes of my attack IO clock shows me the time 12:20:27. Ridiculous! It is 27 seconds difference in first 20 minutes! I am accurate and I like precision, where is the problem? Why one second on IO o'clock sometimes freezes for couple of seconds? There is even a problem with attack's time counting. First 30 minutes of my attack and the time difference is 5 seconds from a real normal time counting. I've been investigating it for a long time and still can't understand it. Why it is so upredictable?
Logged
fragmaster
Forum Staff
*

Karma: +450/-107
Offline Offline

Posts: 1479



« Reply #1 on: January 28, 2012, 06:12:02 AM »

clock u see on io page is not real clock.its not used for any calculation.Clock u see is simply aproximation of time,calculated on ur computer by artificial wait(1000ms) operations in thread owned by ur browser,which cannot be accurate because of ur processor overload.Browser process is not real time critical process and it does not get timeslices precise enough to have accurate clock.U can test how clock behaves when ur processor is ~ 1% busyness and 90% busyness.It does not use/consult hardware timer (accurate) but simply adds +1 second in simple string u see as clock.Reasons for this are many - sending time to ur computer would be too consuming for server (imagine all players receiving time every moment=huge load) ,OR client side could consult ur system time -its not legal to access ur computer in such manner.So only way to "fix" "lagging" clock is to press F5 in ur browser.Are u happy with answer?
Logged

clapdown
Private
*

Karma: +0/-0
Offline Offline

Posts: 8


« Reply #2 on: January 30, 2012, 22:20:03 PM »

That explains a lot. Thanks
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!