CPU
- deen
- Posts: 3576
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: CPU
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.
- 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
pls in the next update do the commands as activate that when you open tw.
RestInHell. - Team Leader
- deen
- Posts: 3576
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: CPU
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"
- deen
- Posts: 3576
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: CPU
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.
- 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
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%
Also when in background it goes down to 15%
- deen
- Posts: 3576
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: CPU
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.
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.
-
- Posts: 4
- Joined: Mon Jun 19, 2017 6:39 am
Re: CPU
Type F1 in the client and look up 'fps'.
Maybe you could set a max-fps to ease CPU usage.
Maybe you could set a max-fps to ease CPU usage.
Who is online
Users browsing this forum: Majestic-12 [Bot] and 10 guests