Results 1 to 9 of 9

Thread: "Ticking Problem"

  1. #1
    Forum Addict
    Join Date
    Oct 2009
    Posts
    1,228

    "Ticking Problem"

    Estimate of Province Data:

    I am going crazy and using 64 bit for everything except race/profession.

    - 1 byte for race
    - 1 byte for profession
    - 20 * 8 byte for buildings + barren + total land
    - 30 byte province name
    - 30 byte ruler name
    - 3 * 8 byte for gold, food, runes
    - 4 * 8 byte for soldiers, def spec, off spec, elites
    - 2 * 8 byte for thieves and wizards

    = 294 byte

    All other values should be calculated, maybe I miss something.

    This means for 10k Provinces the data that needs to be updated
    amounts to ~3MB.

    Q: Why does it take 2+ minutes to update 3MB of data ?

  2. #2
    Post Fiend
    Join Date
    Dec 2008
    Location
    Germany
    Posts
    192
    I dont know, but I find it hard to believe that all the data is just 3MB...

  3. #3
    Post Fiend
    Join Date
    Dec 2008
    Location
    Germany
    Posts
    192
    might have something to do with amount of files too. I once copied 15k guitar pro tabs from one folder to another, and even though each file is like 50kb, it took ages :P

  4. #4
    Member
    Join Date
    Oct 2009
    Posts
    22
    It's not that easy. If only 1 little bit of code is wrong, The code will try to update and it dosent work. That will then bounce back and it will try to do it again. So what happens is that you have 1 tiny bit of information that will bounce back and forth demanding a **** load of computer power.

  5. #5
    Post Demon
    Join Date
    Aug 2008
    Posts
    1,750
    If speed only depended on total size, ticking would not have been a problem

  6. #6
    macsean
    Guest
    It wasn't a problem with 100,000 people. Why would it be with 10,000?

  7. #7
    Forum Addict
    Join Date
    Oct 2009
    Posts
    1,228
    I left out stuff like kingdom relations etc. but really that shouldnt make a big difference.

    Calculating the data should take even less time, so really.. where does all the time go ?

    My best bet is that they are sending 10k badly optimized sql statements to the dbms, which is of course much slower than just writing all data away in text files.

    Quote Originally Posted by http://blog.swirve.com/2009/03/
    Player and kingdom data is stored as Delphi records serialized into text files (i.e., there is no DBMS).

  8. #8
    macsean
    Guest
    My guess is the CMs do the update calculations with a calcualtor and update them manually themselves.

  9. #9
    At One With The Keyboard Luth's Avatar
    Join Date
    Sep 2008
    Location
    California
    Posts
    6,348
    anyone have an abacus? or comptometer?
    ~ Lúthien ~
    “There are two means of refuge from the miseries of life: music and cats.” ~Albert Schweitzer
    Words make us think thoughts... Music makes us feel feelings... Songs make us feel thoughts" ~"Yip" Harburg
    Goodnight Utopia

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •