AtomicTorch Studio Forums

CryoFall => Game discussion => Topic started by: Daitallica on September 22, 2018, 04:21:14 AM

Title: Recommended specs for server
Post by: Daitallica on September 22, 2018, 04:21:14 AM
Hi

What are the recommended computer specs to run
a linux cryofall server with about a 100 player limit?

Or if there's an equation to work out the specs needed
Title: Re: Recommended specs for server
Post by: ai_enabled on September 22, 2018, 12:37:13 PM
We have no more than about 60 players online on any of our servers yet... and it works fine on Intel 2-core CPU with about 2 GHz clock speed, using not more than 600 MB of RAM usually.
Please note that the game server writes a lot of info in the log so it might hog a few GB of free space even if there are no players online. I'm not sure if we've implemented a sliding log mechanism yet (creating a new log file every day and deleting older log files). If not, we will finish it soon as it was already done for VoidExpanse years ago.
Title: Re: Recommended specs for server
Post by: Daitallica on September 23, 2018, 02:56:34 AM
Awesome stuff, my SOC should have no problems then... in theory haha
Thanks
Title: Re: Recommended specs for server
Post by: ai_enabled on September 23, 2018, 03:21:37 AM
When you run the server it will print the mini-profiler stats every 10 seconds into the console. The most important stat is the total update duration.
The default server tickrate is 60 updates per second. It means the frame duration should be consistent below 1/60 of a second (16.7 ms). If in the log you see that the frame takes longer than 16 ms at max, then the hardware is definitely not enough to handle the load. You can reduce the tickrate in that case (to 40 or even 20 updates per second, below creates too high input lag to my opinion) - for example, with 30 updates per second the server has a budget of 1/30 of a second (33.3 ms) per frame.

The game performance scales pretty well with many players online. The reason is that the most game CPU load is player-independent such as game systems update (spawn, AI, vegetation growth, food spoilage, etc). So if you can run the server for the first time (with 0 players) and it reports in the log that it's not using more than 50% of the frame budget total on the update tick, it should be good to play with a few dozens of players online.
Title: Re: Recommended specs for server
Post by: Daitallica on September 23, 2018, 05:00:31 AM
Awesome stuff, I'm just setting up Ubuntu server and going to have a crack at getting the server on there
Title: Re: Recommended specs for server
Post by: Daitallica on September 23, 2018, 06:23:55 AM
Eugh, I'm having trouble installing dotnet.
Will try again tomorrow, my head is cooked haha