Setting up a community dedicated-monster-of-a-server

Discussion in 'Planetary Annihilation General Discussion' started by cola_colin, October 10, 2014.

  1. exterminans

    exterminans Post Master General

    Messages:
    1,881
    Likes Received:
    986
    That's actually less difficult than the problem you are facing in PA.

    Problem is: Push mechanics. The spacing between units enforced by the flocking system is per default way too low, so collisions and pushing enforced by the physic system is inevitable. Later one is solved iteratively until each single frame comes to a - more or less - stable solution.

    That iteration however requires the oct tree, and the lists used to enable efficient lookups for all entities which span more than just a single leaf, to be updated after each single step. Shadowing the unit states would be sufficient if there was only a single pass per frame, but the iterative process requires recent data as units can move surprisingly far in a single frame when the physic system goes haywire.

    In order to make parallelization "trivial", push mechanics would need to be eliminated, which would require more work on the nav system in the first place whereby units would need to clear passages on their own as soon as somebody tries to reserve the path - rather than to wait until units collide and then having to push entire stacks of units.

    It actually works like the latter one in a lot of games, when unit collides, blocking units are not getting pushed away, instead this only triggers a notification to the blocking unit which causes it to move away on its own - basically issuing itself a movement command with the option of returning to the original position as soon as the path is no longer reserved.
    ace63 likes this.
  2. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    that's besides the point extermians, he was just trying to illustrate that multithreading is relatively accessible.
  3. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    If it was, Sup Com and PA wouldn't both have a single-threaded Sim.
    squishypon3 and Quitch like this.
  4. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    supcom came before multithreading came out, you were saying?
  5. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Uh no it didn't. Sup Com has at least three threads. But the main one, the Sim, is single-threaded.
  6. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    quite certain it's FA that's 2 threads (not three) not SupCom. supcom was released with single thread technology because at the time it was the norm and noone had really ventured into multithreading enough.
  7. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    http://forums.gaspowered.com/viewtopic.php?t=15556.

    Sim thread, Render thread + lots of smaller threads for audio, loading etc.
  8. thepilot

    thepilot Well-Known Member

    Messages:
    744
    Likes Received:
    347
    Either way Supcom need all clients to have the exact same sim. That's a lot more difficult than what PA has to do.
    Also, multithreading was not a big thing when supcom dev was started. And after MT became popular, it was probably too late to think of a full engine rework.
    vyolin and warrenkc like this.
  9. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    this

    There exists a MT version of Spring. A free game made by hobby devs.
    Physics libraries like Bullet or Havok are multithreaded since years as well.
    MT sim is quite possible. Sure it is not easy, but PA is an ambitious project isn't it?
    Also during the kickstarter I can remember talking with mavor on reddit about MT and he did plan it. I guess they had to push out PA rather quick and had to not do it so far.
    Last edited: October 25, 2014
  10. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    also what I figured.
  11. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    So overall there are maybe 90$ or so in the donation box so far. Definitely not enough for anything substantial, but we could ofc look to setup a cheaper server. Would probably still be better than Uber servers and allow more players in general, but there already are a few dedicated servers setup by members of the community.
    Personally I don't think there would be much value in setting up such a "cheaper" server. Dunno. What do people think?
    Wait?
    Cancel and refund?
    Get a server that can be paid for right now?
  12. stonberg

    stonberg Member

    Messages:
    81
    Likes Received:
    29
    I know next to nothing about hiring a server, but when I put "games server hire $90" into gooflz, these chaps came up who are offering a $90-per-month discount at present:

    http://www.webhostingtalk.com/showthread.php?p=9275666

    Quad core Xeon w/ 16GB RAM, normal price $149.99/month, currently $59.99/month. Any use?
  13. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Well yeah that kind of server is within reach, but it isn't really that much better compared to the servers that are already running thanks to various members of this community.
  14. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    like i've been saying from the start. go for the all-in option.

    get more funders and supply the server from a household!! : D
  15. superouman

    superouman Post Master General

    Messages:
    1,007
    Likes Received:
    1,139
  16. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    PA server compatible with new DARPA cpu confirmed.
  17. ooshr32

    ooshr32 Active Member

    Messages:
    749
    Likes Received:
    141
    Just a few transistors at this stage, no CPU, but impressive nonetheless.
  18. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    that's not a CPU
  19. superouman

    superouman Post Master General

    Messages:
    1,007
    Likes Received:
    1,139
    y u do dis guys :(
  20. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385

Share This Page