YARC-Official / YARG

YARG (a.k.a. Yet Another Rhythm Game) is a free, open-source, plastic guitar game that is still in development. It supports guitar (five fret), drums (plastic or e-kit), vocals, pro-guitar, and more!
https://yarg.in/
GNU Lesser General Public License v3.0
709 stars 157 forks source link

Graphical artifacts on Linux #873

Open LegitGreenBoi opened 2 weeks ago

LegitGreenBoi commented 2 weeks ago

Recently, I've been getting these artifacts in game. I don't believe it's a hardware issue. No other games give me artifacts and prior to the past few weeks or so, YARG didn't give me this issue either.

You can see them in the Graphics settings menu, but they're even worse in game as the video below demonstrates.

I experienced it hang my system a few times roughly a week ago while streaming the game via Discord.

I've tried uninstalling and reinstalling the game and that did not resolve the issue. I also tried installing 0.12.4 to a new profile and still got the same issues.

It's possible that this could be an Nvidia or possibly even a KDE or Wayland regression. Any insight on this would be appreciated since it only happens with YARG.

I will try running the game through X11 and I'll provide an update if it has the same issue or not.

Some system info: OS: EndeavourOS (Arch Linux) Kernel: Linux 6.10.9-arch1-2 WM: KWin (Wayland) CPU: AMD Ryzen 7 5800X (16) @ 3.80 GHz GPU: NVIDIA GeForce GTX 1070 Ti [Discrete] (Running nvidia-dkms 560.35.03-2)

https://github.com/user-attachments/assets/cfcacf26-9715-4105-bdb2-d76d4deaa7b2

LegitGreenBoi commented 2 weeks ago

I tried the game on Linux Mint (same hardware) and had no artifacts with the Nvidia 555 drivers. This may either be an Arch/Nvidia regression or an issue on my system. Still not totally sure whats going on here, since it happens in no other games or programs.

Unless there's any other insight or recommendations, I think this issue can be closed for now. I may try it on a fresh Arch system to see what happens.

nullsabbath commented 2 weeks ago

I'm facing the same issue: artifacts and the game hangs randomly just before the first notes appears. (5600x + RTX 4070 + latest 560 beta drivers). Some seconds later the game resumes but with graphical glitches. Checking dmesg shows some errors related to the NVIDIA driver when the game freezes so possibly it's a NVIDIA regression(?

Disabling the bloom and enabling the low quality mode in the game makes it more stable, I can play two or three songs until it freezes again.

I'll try to rollback to 555 drivers to test it again.

imakesound commented 1 week ago

I'm experiencing the same problems on Nobara Linux with an RTX 4090. The game is full of graphical glitches and freezes. It might run somewhat okay initially, but then the GPU usage spikes to 100%, and everything locks up. I'm using Wayland with the 560.35.03 Nvidia driver.

imakesound commented 3 days ago

github3.webm

Short video demonstrating GPU usage fluctuations while playing Yarg

The attached video highlights an issue I'm encountering while playing Yarg. The GPU usage abruptly spikes to 100%, then plummets to near 0%. This behavior seems specific to Yarg, as I haven't observed it in other games.

dandy-is-lion commented 3 days ago

Downgrading to Nvidia driver 535 (from the AUR) has fixed these issues for me. Had to go back to Xorg from Wayland, but at least it's stable. Newer drivers have just been making things worse so having graphical glitches here weren't surprising. I've heard that the open Nvidia beta drivers have been more stable, though my card is too old to test these.