Performance Tuning Screeps Server



  • I have set up a private server to test some code. It is great.

    I am interested in running it as fast as possible (ticks per second) to make my testing faster.

    The amount of parallelism seems limited - how are processes divided across cores?

    What should I set runner_cnt and processor_cnt to? Is having one of each process per core the right answer? Should I have twice as many processors as runners? What are runners?

    Should I put the db.json file on a ramdisk?

    I'm having a hard time driving my CPU usage to 100% no matter how I configure the server.

    Are there undocumented switches I should throw?



  • Strange observations: the version of node that comes with steam runs much faster than Node 7.

     

    "db.json file on a ramdisk" sound reasoninig


  • YP

    I don't think you get much from putting db.json on ramdisk .. the database works in memory and only when it's doing its backup its writing it to disk.

     

    while running server faster is one way to debug scripts I find it sometimes had to debug and watch the screeps with such short tick rates.. I prefer changing some constants so building needs less energy, room upgrades needs less energy and stuff like that 😉