Установить Steam
войти
|
язык
简体中文 (упрощенный китайский)
繁體中文 (традиционный китайский)
日本語 (японский)
한국어 (корейский)
ไทย (тайский)
Български (болгарский)
Čeština (чешский)
Dansk (датский)
Deutsch (немецкий)
English (английский)
Español - España (испанский)
Español - Latinoamérica (испанский Лат. Ам.)
Ελληνικά (греческий)
Français (французский)
Italiano (итальянский)
Bahasa Indonesia (индонезийский)
Magyar (венгерский)
Nederlands (нидерландский)
Norsk (норвежский)
Polski (польский)
Português (португальский)
Português-Brasil (бразильский португальский)
Română (румынский)
Suomi (финский)
Svenska (шведский)
Türkçe (турецкий)
Tiếng Việt (вьетнамский)
Українська (украинский)
Сообщить о проблеме с переводом
Beginners will love it.
Although there are more things to improve performance, I will give this a 10/10 for it's contents and ease of use.
Except when memory dumps occur, which is quite easy in Linux :P
Additionally adding a ramdisk for the temp files by adding:
"tmpfs /tmp tmpfs nodev,nosuid,size=512M 0 0" to /etc/fstab.
Although only if you have ram to spare, I use a temp size of 1024mb.
You can remove the file and directory access time, basically by default whenever the file is accessed, the filesystem will update the time it was last accessed.
Say I have this in my fstab:
On the line of your filesystem, replace:
errors=remount-ro
with
errors=remount-ro,noatime,nodiratime
BTW a 512 MB tmp seems a little small. I use at least 12 GB: 8 GB will guarantee I have space to copy a Dual-Layer DVD, and the rest is free.
Having some swap is always advisable to avoid kernel panics if you run out of memory. There are some edge cases where having a low swapiness value can actually result in lower performance. Until a user knows more about what they're doing I want the change to remain reversible.
Offtopic: Does anybody actually use 12GB of RAM? I don't know of anybody who uses a triple channel motherboard in their gaming / home system.
Disabling startup services probably falls into a more general 'Linux tuning guide'. I will look into some that can be disabled whilst gaming and restarted afterwards. It is complicated by the fact that they vary between distros however.
I'm not sure how much of a performance boost using a ramdisk will give. Games already cache their assets in the RAM. The lower swapiness setting is used to try and make them stay there.
I'm not sure how much of a performance boost this will give but tbh it falls outside the idea of a gaming 'turbo button'. It also has repercussions for everyday use of the computer.
I'd like to incorporate any general tweaks that you guys can suggest though. Anything to make things easier for new users.
I've managed to get a few extra frames by completely killing the desktop compositor whilst gaming. Most compositors use a 'do not redirect fullscreen windows' option to prevent games from being composited. However it's not always accurate and you still have your composited desktop taking up video memory. I've found by killing the compositor completely I can free up about 40MB extra video memory when using a 1080p desktop.
I can do this on my system because I use a compositor called compton which runs as a separate process from the window manager. This means I simply include 'killall compton' in the gameon script and 'compton -b' in the gameoff script to stop and start the compositor. I'm currently looking into ways to do this for all the major desktops and hope to include it in the scripts.
DVD? I've thought we are in 2014 :P
Here's a nice thread for KDE tweakers. I personally am not impressed by KDE because I think the user experience offered therefrom is lacking and outdated. Just saying.
Changes:
- Added clean dependency check.
- Number of cores adjusted is based on the return of nproc rather than an arbitrary number.
- Restructured the scripts so they're easier to extend.
I'm working on some further things I can add into the scripts (particularly compositor / desktop effect stuff) but they're not ready for general use yet.
Cheers for the KDE link, I'll have a read through it whilst eating dinner :)
Changes:
- Added a config file and associated functionality.
- Added in experimental support for disabling and re-enabling compositing. Currently supported compositors / window managers are: Compton, XFCE, KDE, Gnome 2 (metacity) and LXDE (xcompmgr).
- Restructured the script so I only have to maintain one file instead of two.
The config file is located in your home folder and named '.gaming_performance_tweaker'. It is generated the first time you use the 'gameon' command. The default values should still be 'fool proof' for new users. The config file is mostly for the benefit of more advanced users as it lets them specify their own values for each tweak (like swapiness for example,) or bypass certain tweaks altogether.
The tweak for toggling compositing is still experimental. It is disabled by default but can be enabled in the config file. The Compton and XFCE options have been heavily tested and work. The others will receive more testing in a VM when I get time tomorrow. I'm fairly sure KDE should work, Gnome 2 and LXDE less so.
Unity and Gnome 3 are giving me a bit of a headache. The only way I've found so far to disable compositing in them is to fallback to different window managers which is far from ideal.
If you want to try them out and give feedback I'd really appreciate it.
I didn't realize it was so simple to switch back to ondemand while not gaming.
I don't have use for the compositing feature but I'm sure there are those who do. I'll keep monitoring the changes though. Thanks for what you've done so far.
A forum feature to be able to reply without bumping the thread would be amazing. like sage
But I guess that could also lead to some trouble
Changes:
- Added an interactive setup for the config file. Only happens the first time you run the script or if you delete the config file.
- Added ability to exit the script after setting up the config file. Useful if you want to manually edit the config before running any tweaks.
- Added and tested support for disabling and re-enabling compositing in a bunch of desktop environments. Supported compositors / window managers are: Compton, XFCE, KDE, Gnome 2, Gnome 3*, LXDE (or anything else that uses xcompmgr), Cinnamon*, MATE, Unity 3D*.
*Can't actually toggle compositing in Gnome 3, Cinnamon or Unity so the script just toggles desktop effects instead.
- Added option to modprobe governor modules. Useful if cpufrequtils keeps giving errors. Can only be enabled via the config file.
- Added support for clearing the cache before starting a game. Only useful in limited situations so it's disabled by default and can only be enabled via the config file.
- Added an option in the config file to disable the 'sudo -k' at the end of the script. Useful if you want to call my script from one of your own.
I can't really think of anything else that needs to be added. If anyone has any useful tweaks I'll add them in. If you find any bugs please let me know.
I'll rewrite the first post at some point to better reflect what the script does now. The installation instructions etc are still correct.