CPU

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
triki
Posts: 144
Joined: Mon Mar 30, 2015 8:44 pm
Player profile: http://ddnet.tw/players/triki/

CPU

Post by triki »

Why ddclient eat so much cpu ?The game "league of legends" eats less the processor.
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: CPU

Post by deen »

The client calculates updates as often as it can. You can use gfx_vsync 1 and cl_cpu_throttle 5 (and cl_cpu_throttle_inactive 5) to reduce the load a bit. Unfortunately the CPU throttle this might make your input less accurate, about which pros would not be happy. There probably is a way to optimize this more without sacrificing accuracy.
triki
Posts: 144
Joined: Mon Mar 30, 2015 8:44 pm
Player profile: http://ddnet.tw/players/triki/

Re: CPU

Post by triki »

with cl_cpu_throttle 5 unplayble but 2 is ok.
triki
Posts: 144
Joined: Mon Mar 30, 2015 8:44 pm
Player profile: http://ddnet.tw/players/triki/

Re: CPU

Post by triki »

But anyway it is dont help.
User avatar
Cellegen
Posts: 1140
Joined: Sun Nov 06, 2016 10:39 pm
Location: Germany
Player profile: https://ddnet.tw/players/Cellegen/
Mapper profile: https://ddnet.tw/mappers/Cellegen/
Clan: RestInHell.
Website: https://skins.tw/
Discord: Cellegen | RiH#5501

Re: CPU

Post by Cellegen »

pls in the next update do the commands as activate that when you open tw.
RestInHell. - Team Leader
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: CPU

Post by deen »

But then people with weak computers will not be able to play as well anymore. So we need a better logic for this, something like "update input every x ms" instead of "sleep x ms after updating input"
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: CPU

Post by deen »

I looked into it some more. It's probably possible to move getting the input to a separate thread, which blocks. But with the current design that would slightly change the physics, something we never want to do in DDNet because it would invalidate all our ranks.
User avatar
Ryozuki
Posts: 1748
Joined: Tue Feb 24, 2015 7:28 am
Location: Catalonia
Player profile: http://ddnet.tw/players/Ryozuki/
Mapper profile: http://ddnet.tw/mappers/Ryozuki/
Clan: Unique
Website: https://edgarluque.com
Discord: Ryozuki#2188

Re: CPU

Post by Ryozuki »

I think it shouldn't be a problem, if you have good cooling on your pc. For me DDNet client uses 40% of cpu (i5 4460)
Also when in background it goes down to 15%
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: CPU

Post by deen »

I've made changes to the CPU throttling. The same settings should have the same effect now, independent of how fast your CPU actually is. The new variables are cl_refresh_rate (480 Hz by default) and cl_refresh_rate_inactive (120 Hz by default).

Please try them out in the nightly client before we release it properly: Win64, Win32, Linux x86_64, Linux x86, Mac OS X

If other values work better for you, please report them. Especially if the input or video display feel sluggish with this change, try increasing the cl_refresh_rate.
linuxmint173
Posts: 4
Joined: Mon Jun 19, 2017 6:39 am

Re: CPU

Post by linuxmint173 »

Type F1 in the client and look up 'fps'.
Maybe you could set a max-fps to ease CPU usage.
Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 10 guests