sched-ext / scx

sched_ext schedulers and tools
https://bit.ly/scx_slack
GNU General Public License v2.0
691 stars 48 forks source link

sched_ext: Elden Ring heavy stuttering #376

Open hivehivemind opened 2 weeks ago

hivehivemind commented 2 weeks ago

Elden Ring is presenting intense stuttering in any game area, resolution or frame rate. Tested with lavd (bad), nest (bad), rusty (worse), and rustland (unplayable). Stopping scx.service, falling back to BORE in CachyOS, solves the problem. Dark Souls 3, from the same engine, is normally working with sched_ext.

Ryzen 7 5800X3D RX 7900 XT 16GB (2x8) 3800 MHz CL14 RAM - running fine grained OC ROG Strix X570-i - PSS, NX, Global C States disabled (happens with PSS enabled too)

Happens on Nobara 39 with linux-cachyos kernel, CachyOS itself (linux-cachyos 6.9, linux-cachyos-deckify 6.9, linux-cachyos-rc 6.10, linux-cachyos-lto).

# scx_lavd -s $(nproc) 2> elden_ring.log attached. elden_ring.log

multics69 commented 2 weeks ago

If possible, could you please share rough FPS numbers? It seems to work fine on my SteamDeck.

arighi commented 2 weeks ago

AMD... hm... I'm wondering if we're still facing a similar nr_cpus issue again (see https://github.com/sched-ext/scx/issues/147)... Can you try to boot your kernel with nr_cpus=16?

hivehivemind commented 2 weeks ago

Uploaded RADV vs BORE in Elden Ring here: https://flightlessmango.com/games/38004/logs/5460 Context:

My normal play happens in gamescope embedded, 4K, mix of high-max settings, er-patcher for 90 FPS (game hard locks 60 by default), offline. Stutters are more drastic in the 90 FPS context.

Added nr_cpus=16 to /etc/sdboot-manage.conf LINUX_OPTIONS env var -> # sdboot-manage gen. No change.

frame-time minmaxaverage

multics69 commented 2 weeks ago

What? The results are very different from one on StreamDeck. I will install the same CacheOS KDE to reproduce the problem. Thanks a lot @hivehivemind !

multics69 commented 2 weeks ago

@hivehivemind -- Does it also happen in other stages besides Vulcano Manor?

hivehivemind commented 1 week ago

@hivehivemind -- Does it also happen in other stages besides Vulcano Manor?

Replying here for visibility too. Yes, it happens on any game stage, although it's more severe in ones with more asset density such as Vulcano Manor and Leyndell. These two we see the stutter while standing still.

multics69 commented 1 week ago

I tested it on 2 different AMD laptops. Now I understand what you mean while the sutters that I observed is much less severe. I hope they should follow the same pattern with you. I will work on it.

Thanks a lot for your effort on reporting and testing, @hivehivemind

multics69 commented 1 week ago

Please try PR #383 . It works okay in my setting although I didn't test the exact same stages. @hivehivemind

multics69 commented 1 week ago

@hivehivemind -- PR #386 should further reduce micro-stutters (while I was not able to play on the same stages). Please try it out.