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?
hosting causing massive cpu usage?
Moderator: Moderators
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: hosting causing massive cpu usage?
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.
But spring will always use 100 % of your CPU regardless if its client or server.
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Re: hosting causing massive cpu usage?
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)
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)
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: hosting causing massive cpu usage?
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.
And servers time is not counted anywhere in that graph.
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Re: hosting causing massive cpu usage?
ahh okay, i'll look for the server process in top next time i host.
Re: hosting causing massive cpu usage?
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.
Use H to turn displaying of threads on or off; in top it is off by default, in htop it is on by default.