hosting causing massive cpu usage?

hosting causing massive cpu usage?

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

hosting causing massive cpu usage?

Post 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?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: hosting causing massive cpu usage?

Post 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.
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: hosting causing massive cpu usage?

Post 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)
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: hosting causing massive cpu usage?

Post 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.
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: hosting causing massive cpu usage?

Post by thesleepless »

ahh okay, i'll look for the server process in top next time i host.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: hosting causing massive cpu usage?

Post 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.
Post Reply

Return to “General Discussion”