1
0

gamemode.ini 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. [general]
  2. ; The reaper thread will check every 5 seconds for exited clients, for config file changes, and for the CPU/iGPU power balance
  3. reaper_freq=5
  4. ; The desired governor is used when entering GameMode instead of "performance"
  5. desiredgov=performance
  6. ; The default governor is used when leaving GameMode instead of restoring the original value
  7. ;defaultgov=powersave
  8. ; The desired platform profile is used when entering GameMode instead of "performance"
  9. desiredprof=performance
  10. ; The default platform profile is used when leaving GameMode instead of restoring the original value
  11. ;defaultgov=low-power
  12. ; The iGPU desired governor is used when the integrated GPU is under heavy load
  13. igpu_desiredgov=powersave
  14. ; Threshold to use to decide when the integrated GPU is under heavy load.
  15. ; This is a ratio of iGPU Watts / CPU Watts which is used to determine when the
  16. ; integraged GPU is under heavy enough load to justify switching to
  17. ; igpu_desiredgov. Set this to -1 to disable all iGPU checking and always
  18. ; use desiredgov for games.
  19. igpu_power_threshold=0.3
  20. ; GameMode can change the scheduler policy to SCHED_ISO on kernels which support it (currently
  21. ; not supported by upstream kernels). Can be set to "auto", "on" or "off". "auto" will enable
  22. ; with 4 or more CPU cores. "on" will always enable. Defaults to "off".
  23. softrealtime=off
  24. ; GameMode can renice game processes. You can put any value between 0 and 20 here, the value
  25. ; will be negated and applied as a nice value (0 means no change). Defaults to 0.
  26. ; To use this feature, the user must be added to the gamemode group (and then rebooted):
  27. ; sudo usermod -aG gamemode $(whoami)
  28. renice=0
  29. ; By default, GameMode adjusts the iopriority of clients to BE/0, you can put any value
  30. ; between 0 and 7 here (with 0 being highest priority), or one of the special values
  31. ; "off" (to disable) or "reset" (to restore Linux default behavior based on CPU priority),
  32. ; currently, only the best-effort class is supported thus you cannot set it here
  33. ioprio=0
  34. ; Sets whether gamemode will inhibit the screensaver when active
  35. ; Defaults to 1
  36. inhibit_screensaver=1
  37. ; Sets whether gamemode will disable split lock mitigation when active
  38. ; Defaults to 1
  39. disable_splitlock=1
  40. [filter]
  41. ; If "whitelist" entry has a value(s)
  42. ; gamemode will reject anything not in the whitelist
  43. ;whitelist=RiseOfTheTombRaider
  44. ; Gamemode will always reject anything in the blacklist
  45. ;blacklist=HalfLife3
  46. ; glxgears
  47. [gpu]
  48. ; Here Be Dragons!
  49. ; Warning: Use these settings at your own risk
  50. ; Any damage to hardware incurred due to this feature is your responsibility and yours alone
  51. ; It is also highly recommended you try these settings out first manually to find the sweet spots
  52. ; Setting this to the keyphrase "accept-responsibility" will allow gamemode to apply GPU optimisations such as overclocks
  53. ;apply_gpu_optimisations=0
  54. ; The DRM device number on the system (usually 0), ie. the number in /sys/class/drm/card0/
  55. ;gpu_device=0
  56. ; Nvidia specific settings
  57. ; Requires the coolbits extension activated in nvidia-xconfig
  58. ; This corresponds to the desired GPUPowerMizerMode
  59. ; "Adaptive"=0 "Prefer Maximum Performance"=1 and "Auto"=2
  60. ; See NV_CTRL_GPU_POWER_MIZER_MODE and friends in https://github.com/NVIDIA/nvidia-settings/blob/master/src/libXNVCtrl/NVCtrl.h
  61. ;nv_powermizer_mode=1
  62. ; These will modify the core and mem clocks of the highest perf state in the Nvidia PowerMizer
  63. ; They are measured as Mhz offsets from the baseline, 0 will reset values to default, -1 or unset will not modify values
  64. ;nv_core_clock_mhz_offset=0
  65. ;nv_mem_clock_mhz_offset=0
  66. ; AMD specific settings
  67. ; Requires a relatively up to date AMDGPU kernel module
  68. ; See: https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html#gpu-power-thermal-controls-and-monitoring
  69. ; It is also highly recommended you use lm-sensors (or other available tools) to verify card temperatures
  70. ; This corresponds to power_dpm_force_performance_level, "manual" is not supported for now
  71. ;amd_performance_level=high
  72. [cpu]
  73. ; Parking or Pinning can be enabled with either "yes", "true" or "1" and disabled with "no", "false" or "0".
  74. ; Either can also be set to a specific list of cores to park or pin, comma separated list where "-" denotes
  75. ; a range. E.g "park_cores=1,8-15" would park cores 1 and 8 to 15.
  76. ; The default is uncommented is to disable parking but enable pinning. If either is enabled the code will
  77. ; currently only properly autodetect Ryzen 7900x3d, 7950x3d and Intel CPU:s with E- and P-cores.
  78. ; For Core Parking, user must be added to the gamemode group (not required for Core Pinning):
  79. ; sudo usermod -aG gamemode $(whoami)
  80. ;park_cores=no
  81. ;pin_cores=yes
  82. [supervisor]
  83. ; This section controls the new gamemode functions gamemode_request_start_for and gamemode_request_end_for
  84. ; The whilelist and blacklist control which supervisor programs are allowed to make the above requests
  85. ;supervisor_whitelist=
  86. ;supervisor_blacklist=
  87. ; In case you want to allow a supervisor to take full control of gamemode, this option can be set
  88. ; This will only allow gamemode clients to be registered by using the above functions by a supervisor client
  89. ;require_supervisor=0
  90. [custom]
  91. ; Custom scripts (executed using the shell) when gamemode starts and ends
  92. ;start=notify-send "GameMode started"
  93. ; /home/me/bin/stop_foldingathome.sh
  94. ;end=notify-send "GameMode ended"
  95. ; /home/me/bin/start_foldingathome.sh
  96. ; Timeout for scripts (seconds). Scripts will be killed if they do not complete within this time.
  97. ;script_timeout=10