-
-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extreme stuttering in Apex Legends #2085
Comments
sway? |
It works fine for me on Steam, did you try it ? |
Sway is weird and refuses to launch apps for me, but Wayfire (built as wayfire-git from the aur) gives the sane performance as GNOME, so it does appear to be Hyprland specific. |
Lutris just acts as a launcher for Steam games, although I did try Steam directly and got the same results. |
Same here but with other games, Games stuttering compared to KDE in my case. |
wf doesn't use wlroots-git. It might be a wlr issue after all. Can anyone check sway-git? |
Apex works well for me through steam. I will say a fresh apex install stutters for me at first until it compiles/caches shaders. Not sure if that’s what your experiencing or not |
Nah, I went into firing range for almost half an hour and it was still constantly stuttering. |
Tested sway-git it seems it gave me fluid experience on gaming compared to hyprland, but I had mouse issues on sway. |
Any news? |
No, idk what's up |
Maybe updating to the latest version of wlroots will fix it? I've seen that they've made a lot of changes. Non-git sway seems have for me have some stuttering. |
we are not that far behind -git. |
Still it's a try. |
Try to isolate the issue. It runs perfectly fine on my end. Both on Sway and Hyprland. |
Does it present on latest -git version wlroots had update |
I can test tomorrow |
I can confirm. The problem is present on hyprland-git+wlroots-git but not on wlroots+hyprland. The bug is several stuttering and -10 -20 fps |
I've noticed this as well.. GPU: AMD Radeon RX 6800 XT |
Hyprland bundles wlroots, your system wlroots don't matter. If this is a regression, I'd like a |
Could you test with kernel command line parameter gpu_sched.sched_policy=0 |
@vaxerski I noticed that if I move with just the keyboard, the stuttering isn't visible (Halo Infinite in my instance but it's most likely the same issue as with Apex Legends). The stuttering/jitter is extreme when moving the mouse even though the frametime is low and fps relatively high. Could this be related? This issue was mentioned here as well
|
Could you test with kernel command line parameter gpu_sched.sched_policy=0 |
There's no difference with |
Does enabling vsync fixes stuttering? |
I've tried enabling/disabling these to no avail:
I may be wrong but it seems like this issue is correlated to the mouse cursor, moving around in game with just the keyboard isn't as jittery/stuttery. For Sway/wlroots, there's some workarounds (patches) here if it's indeed the mouse cursor causing it (but Hyprland would need to be tweaked to use this patch which is outside of my expertise): |
@ThatOneCalculator This is how the stuttering looks on my end. Is it the same as yours? |
Try switching to linux-lts kernel. It should fix. |
Thanks for the update @Zeioth
I'm in progress of trying OpenSuSE instead of NixOS. |
Update: the stuttering in NixOS (hyprland-git 2e28e88) is worse than with OpenSuSE Tumbleweed (Hyprland v0.24.1). OpenSuSE improves fps by 20-30 & decreases frametime with 3-4ms since they're using x64_86-v3 optimization level with LTO+PGO. Turns out the stuttering only happens when the game runs below my monitor's refresh rate even with
My monitor's Freesync range is 1-144 hz and it even has a dedicated GSync Ultimate chip :/ For clarification, I pretty much only installed Hyprland, xdg, MESA, codecs, kernel-firmware, pipewire, steam, mangohud & gamemoded while testing this. |
Another update:
It seems like Variable Refresh Rate (VRR) in Hyprland doesn't actually adjust monitor's refresh rate in that case? I have no way of verifying this in my panel unfortunately |
@ThatOneCalculator If your intermittent stuttering is actually caused by frame drops and not something else like the old fTPM stutter bug in AMD CPUs, I don't think there is much we can do about it until the VRR implementation gets improved: #927 Workaround: Related issues:
Other/gaming related: |
@ThatOneCalculator Isn't that connected? |
Great find @grappas! |
But just to be sure check it CPU bottlenecked (lowest settings possible). |
Workaround for VRR stuttering: #927 (comment)
Sure @grappas, I can reproduce your issue by forcing my game to be CPU bound. Let's continue the discussion here: #1919 (comment) (since it's unclear if this PR is about stuttering from VRR or resource starvation as the author isn't replying). |
Same here on sway. For me is the only way to smooth run Apex is turn screen mode to Windowed and run sway with |
why not try on -git with tearing? |
Can confirm it works but personally not a fan of tearing. Fells pretty stuttery even witn 200+ fps on 144Hz monitor. I'm looking for smooth vrr gameplay, but this game even with regular vsync is kinda of a mess. |
I have not found any way to resolve this in Hyprland 🙁 There's 2 parts to this problem
I've tried this with a RX 6800 XT + Ryzen 9 5950X (fTPM off) + 1000Hz mouse and confirmed this issue exists in multiple monitors in Arch Linux, Fedora & OpenSuSE Tumbleweed:
Thanks for the idea but this makes it worse, the stuttering is still there and in-game textures are completely smeared out due to tearing. |
no. 1. has no fix for us AFAIK, it requires a wlroots patch. |
@vaxerski I've tried isolating this issue with various combinations of settings to no avail:
I'm not sure what else to try, I've back revising this issue once in a while since March of this year (when I started using Hyprland) |
what if you enable tearing? without that it will push 2x fps of your game most likely |
It's actually a gamescope thing. If you want i.e. 240Hz you want to set -r 480. |
Thanks for taking a look guys!
My games are GPU bounds
I don't use Gamescope since I haven't found any performance difference when it's running in nested mode. Nonetheless I tried @vaxerski |
Have you tried forcing fps with mangohud? |
Are you thinking about forcing vsync through MangoHud? Gave this a shot but it made no diference:
Considering I have to disable direct scanout in Sway to get the right refresh rate (which I verify with my monitor's OSD), there's probably a similar bug somewhere in Hyprland but I'm not sure how to go about finding it 🙁 |
To uncap fps without vsync in Apex you should switch mangohud's |
Apex plays fine without stuttering in KDE fullscreen though. In hyprland though I still get stuttering. EDIT: It's only smooth in KDE+X11 for me. KDE+wayland equally horrible stuttering to hyprland. |
Updated workaround I found in another issue is to launch gamescope in embedded mode in another tty: So press
Though things seemed less good with a limited frame rate for me so I do:
|
@ParetoOptimalDev Next time just leave the link to the workaround instead of making your own half-assed copy & paste with missing details |
Don't be an asshole for no reason @GrabbenD |
I only noticed stuttering in games in 2 situations I have a 6700XT and R7 2700X the monitor is a Samsung Odyssey G5 32" 165hz |
Not related to Apex Legends specifically but I've been intermittently having this issue on UE5 based games as well. There is no significant input lag and the game itself seems to be running perfectly smooth, it's just as if the compositor is trying to draw an old frame at the same time the game is sending a new frame to GPU, so the GPU flickers between displaying both. Tried enabling Hyprland tearing and setting immediate mode on the windows, ingame vsync on/off, no difference. Edit: |
Not running -git build but the OpenSUSE TW repo recently updated to 0.42. I can't speak for OP since I don't play Apex Legends but the (mostly UE5 via VKD3D but also happened in BG3 using Vulkan renderer) games that were exhibiting this stuttering for me under wlroots all seem to be fixed now under aquamarine, so it definitely seems to have been a wlroots-specific issue at least in my case. |
Apex Legends stutters immensely when compared to GNOME despite being launched the exact same way (Lutris with gamescope enabled)
The text was updated successfully, but these errors were encountered: