FeralInteractive / gamemode

Optimise Linux system performance on demand
BSD 3-Clause "New" or "Revised" License
4.84k stars 188 forks source link

Gamemode causes New World to only use 4 cores and to throw: Unsupported CPU detected #501

Open kosimas opened 1 month ago

kosimas commented 1 month ago

Describe the bug Using gamemode with New World causes New World to throw this error before startup: Unsupported CPU detected: CPU needs to support SSE, SSE2 and SSE3. When clicking okay in that error window the game launches without any problems but only 4 cores of my 32 cores are being used while playing. This results in poor performance.

To Reproduce Steps used to reproduce the behavior:

  1. Set Steam launch parameter to 'gamemoderun %command%'
  2. Run game 'New World: Aeternum'

Expected behavior gamemode should not restrict the detection of CPU features in New World.

System Info (please complete the following information): CPU: 13th Gen Intel(R) Core(TM) i9-13900K GPU: AMD Radeon RX 7900 XTX OS: Arch Linux 6.11.3-arch1-1 (64-bit) Driver Version: 4.6 (Compatibility Profile) Mesa 24.2.4-arch1.1 GameMode Version: gamemode-1.8.2-1

SpiritWinD86 commented 1 month ago

can confirm, gamemode is auto pinning cpu cores for games incorrectly (experienced this after one of the last gamemode updates, i think 1.8.2) - tried a few games in steam and with active game mode they only used 2 cores or 4 cpu threads (8th-11th threads or 4th - 5th cores without HT) - you can check it in mangohud or in system monitor - cpu affinity for game's process). cpu old amd fx 8350 and intel i9 13900 - same behavior. one of the workarounds - open gamemode.ini and under [cpu] add pin_cores=no (or set it to a number/list of cpu cores if needed).

https://github.com/FeralInteractive/gamemode/issues/498 same issue with auto pinning cores here.

wereii commented 3 weeks ago

Just to confirm something from the other issue (#498) could I get the outputs of lscpu -e of the 13900 from you guys here, let's make sure we all have the same max frequencies and it's not something weirder.

kosimas commented 3 weeks ago
$ lscpu -e
CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE    MAXMHZ   MINMHZ       MHZ
  0    0      0    0 0:0:0:0          yes 5500.0000 800.0000  800.0000
  1    0      0    0 0:0:0:0          yes 5500.0000 800.0000  800.0000
  2    0      0    1 4:4:1:0          yes 5500.0000 800.0000 1212.7050
  3    0      0    1 4:4:1:0          yes 5500.0000 800.0000  800.0000
  4    0      0    2 8:8:2:0          yes 5500.0000 800.0000  800.0000
  5    0      0    2 8:8:2:0          yes 5500.0000 800.0000  800.0000
  6    0      0    3 12:12:3:0        yes 5500.0000 800.0000 1050.7860
  7    0      0    3 12:12:3:0        yes 5500.0000 800.0000  800.0000
  8    0      0    4 16:16:4:0        yes 5800.0000 800.0000 1186.7111
  9    0      0    4 16:16:4:0        yes 5800.0000 800.0000  800.0000
 10    0      0    5 20:20:5:0        yes 5800.0000 800.0000 1322.2889
 11    0      0    5 20:20:5:0        yes 5800.0000 800.0000 1079.3940
 12    0      0    6 24:24:6:0        yes 5500.0000 800.0000 1236.3800
 13    0      0    6 24:24:6:0        yes 5500.0000 800.0000 1043.4260
 14    0      0    7 28:28:7:0        yes 5500.0000 800.0000 1201.4750
 15    0      0    7 28:28:7:0        yes 5500.0000 800.0000  800.0000
 16    0      0    8 32:32:8:0        yes 4300.0000 800.0000  799.6430
 17    0      0    9 33:33:8:0        yes 4300.0000 800.0000  997.2360
 18    0      0   10 34:34:8:0        yes 4300.0000 800.0000  800.2720
 19    0      0   11 35:35:8:0        yes 4300.0000 800.0000  800.0000
 20    0      0   12 36:36:9:0        yes 4300.0000 800.0000  800.0000
 21    0      0   13 37:37:9:0        yes 4300.0000 800.0000  800.0000
 22    0      0   14 38:38:9:0        yes 4300.0000 800.0000  799.7950
 23    0      0   15 39:39:9:0        yes 4300.0000 800.0000  800.0000
 24    0      0   16 40:40:10:0       yes 4300.0000 800.0000  803.9480
 25    0      0   17 41:41:10:0       yes 4300.0000 800.0000  800.0000
 26    0      0   18 42:42:10:0       yes 4300.0000 800.0000  961.7380
 27    0      0   19 43:43:10:0       yes 4300.0000 800.0000  951.4370
 28    0      0   20 44:44:11:0       yes 4300.0000 800.0000 1008.6100
 29    0      0   21 45:45:11:0       yes 4300.0000 800.0000  971.9160
 30    0      0   22 46:46:11:0       yes 4300.0000 800.0000  800.0000
 31    0      0   23 47:47:11:0       yes 4300.0000 800.0000  800.0000