Page 1 of 2
CPU
Posted: Mon May 29, 2017 9:08 am
by triki
Why ddclient eat so much cpu ?The game "league of legends" eats less the processor.
Re: CPU
Posted: Mon May 29, 2017 9:36 am
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.
Re: CPU
Posted: Mon May 29, 2017 11:26 am
by triki
with cl_cpu_throttle 5 unplayble but 2 is ok.
Re: CPU
Posted: Mon May 29, 2017 2:00 pm
by triki
But anyway it is dont help.
Re: CPU
Posted: Mon May 29, 2017 4:42 pm
by Cellegen
pls in the next update do the commands as activate that when you open tw.
Re: CPU
Posted: Mon May 29, 2017 5:02 pm
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"
Re: CPU
Posted: Fri Jun 02, 2017 8:28 pm
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.
Re: CPU
Posted: Fri Jun 02, 2017 8:49 pm
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%
Re: CPU
Posted: Fri Jun 02, 2017 10:30 pm
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.
Re: CPU
Posted: Mon Jun 19, 2017 6:47 am
by linuxmint173
Type F1 in the client and look up 'fps'.
Maybe you could set a max-fps to ease CPU usage.