-
Notifications
You must be signed in to change notification settings - Fork 176
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
[Overlay] Steam Overlay is glitched when playing Terraria. #7889
Comments
https://gitlab.freedesktop.org/mesa/mesa/-/issues/4191 is further along in evaluating this issue. |
For what I've seen, they have passed the issue to you. |
I have exactly the same issue but with unrailed, so it seems to affect more than one game |
The mesa devs say you have to fix the code in the steam overlay |
@Tau5 |
This seems to affect (at least) FNA titles, I've seen it in:
Here's a video of the corruption on an RX580, Mesa 21.1.4. Same issue appeared on an HD2000 Intel iGPU. |
Found a workaround for Arch Linux users:
Start the game and use Overlay. |
It's more of a workaround than a fix. Using the mesa driver over amdgpu-pro is highly preferred for most applications. |
I am using the open drivers for everything except for Terraria, hence the launch option. |
My point was that you shouldn't have to use AMDGPU-PRO for Terraria either. Hence a workaround, rather than a fix. |
This is also a problem for Intel Iris (i7-1165G7) with Celeste. Both on Wayland and Xorg. |
Did someone found a fix? I'm on Linux Mint |
Same here, with a RX 570, using Zorin OS and Pop OS (Both based on Ubuntu) |
Another workaround for FNA games is using |
Can confirm that Terraria crashes with this launch option. The game loads and the Steam overlay works fine, but the game randomly crashes while playing. |
This bug is now confirmed as affecting the Steam Deck - if this bug is not fixed soon, many games will fail to render at launch. |
The Steam Overlay is a separate window so it gets its own plane on the Steam Deck so, I doubt this is the same issue @flibitijibibo |
If the Steam deck is affected by this it means that this issue is probably going to get a lot more attention, which will hopefully fix it. |
Where does it say it affects the Steam Deck? The graphics side of the overlay shouldn't run its hooks there. |
We appear to be running into the same issue as before where GL_COORD_REPLACE affects all rendering - this was fixed in radeonsi a few years ago as far as I know. The overlay is affected on desktop regardless of hardware, but for the Deck's gamescope instance in particular we're seeing untextured geometry from the game. |
Going to work around this in FNA 21.10 I think... if a game affected is not in this list, please add it:
I'll try and update all except the last 4 within the next month (I still have a script from the last time I updated 35 games at once...). For those last 4, please let the developer know that they will need to update to FNA 21.10, which releases on Friday. This will be a pretty massive deployment that will take a long time, so if you want to move it along faster... |
This issue is not overlay or Steam related. It can be reproduced by doing |
Could be a radeonsi/Gallium regression in Git (latest stable Mesa is okay), might need someone to check while I keep an eye on Steel Assault this week. |
On https://gitlab.freedesktop.org/mesa/mesa/-/issues/4191 the developers claim it is not a Mesa issue. |
It's possible that the original bug and what Ethan mentioned in the last few comments could just be different issues. |
Turns out it's a combination of both - the overlay does still likely need to reset GL_COORD_REPLACE state, but for the Deck in particular there appears to be a radeonsi regression that is worked around in the latest FNA3D. For games that are updated to 21.10 or newer it won't be an issue but it may be a concern for older games that may not have an active maintainer. The above games should produce a repro case if needed (with the exception of the FEZ beta and Charlie/Dishwasher/Salt, which I updated this morning, and Steel Assault which is launching today). |
Deck just happens to use recent Mesa with no functional changes to GL rendering at the moment, so odds are it's a problem on Mesa main on recent AMD chips as well. Can you point us to the workaround so we can look at it from that side? |
Workaround: FNA-XNA/FNA3D@f8d0443 The previous version would enable point sprites and set GL_COORD_REPLACE to 1, since we only support point sprites with gl_PointCoord/gl_TexCoord[0]. Instead, we now wrap each glDraw* with the same two calls, enabling and disabling with each GL_POINTS draw. |
The regression may have already been identified: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5423 Commit in question: https://gitlab.freedesktop.org/mesa/mesa/-/commit/11d1309d8276768aca3f02ddd7cc57cdb323113c |
Merge request for anyone that's self-building Mesa: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13105 |
As of Mesa 21.3, this issue still persists. |
The driver side has thankfully been resolved - the overlay is another story. Some users have tested the latest FNA3D and it seems to fix it, but I wouldn't count on it being that way forever (or until the Vulkan test suite gets finished, which is still far off). |
Still persists on Mesa 21.3.4 it seems, Overlay is still bugged in Terraria. |
Thanks, this works for Axiom Verge |
Fixed in Terraria 1.4.3.6 |
Terraria updated to FNA ~22.03 last night, meaning it now has the point sprite workaround to avoid this issue. It will still persist for other titles that haven't updated yet (which I would actually hold off on until SDL's move to Wayland-by-default is finished, aiming for end of March provided #8020 doesn't end up blocking it). |
Update / Fix: To fix issues like this you need to update FNA. I used the script here: https://gist.github.com/flibitijibibo/f06e3f60eb66e5462da824e490229591#file-fnaupdate-sh
|
still having this issue in Celeste, arch linux, amdgpu, gnome, wayland |
I just ran into this issue on Terraria too. Running latest version of arch (6.6.9-arch1-1), Terraria (v1.4.4.9), and Proton 8.0-4 on Xorg. EDIT: tried running the script that @sunryze-git mentioned, but it didn't fix the issue (unless I did it wrong, lol). |
Playing Terraria on Wayland (Plasma 5.27) natively, I don't have any issue with the overlay anymore. I haven't run that script on this install (I used it on a past install) |
Your system information
Please describe your issue in as much detail as possible:
When using Steam Overlay in Terraria, the overlay is broken and unresponsive. Others are also experiencing this issue.
Steam overlay is required to start co-op servers without manual intervention.
Steps for reproducing this issue:
Tried Solutions:
None of these methods have worked so far to fix the issue.
The text was updated successfully, but these errors were encountered: