Page 1 of 1
hosting causing massive cpu usage?
Posted: 15 Jun 2009, 14:24
by thesleepless
okay, whenever i try to host a game these days my cpu usage from spring skyrockets, always around 100% mainly in sim time, unit update and unit slow update.
when playing single player or playing in someone else's game it's never a problem even with huge amounts of units.
is there a reason why hosting uses up so much cpu, and any way to improve it?
Re: hosting causing massive cpu usage?
Posted: 15 Jun 2009, 14:39
by Auswaschbar
Th only thing that differs while hosting is a seperate, about 5% CPU time consuming process for the server, barely noticeable on a dualcore-cpu. For how much people do you host?
But spring will always use 100 % of your CPU regardless if its client or server.
Re: hosting causing massive cpu usage?
Posted: 15 Jun 2009, 14:47
by thesleepless
hmm i don't have a dual core unfortunately,
last night i was hosting for 8 people.
is that 5% per client?
i figure if the CPU usage is all in sim time then there's a problem?
otherwise it'd be going to the rendering more?
i was getting 1 fps towards the end (even when only one player was left) .. there was a lot of chickens. (but no more than i've usually had in a single player game)
Re: hosting causing massive cpu usage?
Posted: 15 Jun 2009, 14:56
by Auswaschbar
No, that are about 5 % total (rought estimate), as there is little more to do than forward the traffic to the other people.
And servers time is not counted anywhere in that graph.
Re: hosting causing massive cpu usage?
Posted: 15 Jun 2009, 14:58
by thesleepless
ahh okay, i'll look for the server process in top next time i host.
Re: hosting causing massive cpu usage?
Posted: 15 Jun 2009, 15:12
by Tobi
Make sure to set it to display each thread separately then.
Use H to turn displaying of threads on or off; in top it is off by default, in htop it is on by default.