Skip to content
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

[Bug] Micro stuttering linux #6741

Open
prd-ryu opened this issue Apr 28, 2024 · 18 comments
Open

[Bug] Micro stuttering linux #6741

prd-ryu opened this issue Apr 28, 2024 · 18 comments
Labels
bug Something isn't working

Comments

@prd-ryu
Copy link

prd-ryu commented Apr 28, 2024

Description of the issue

Ubuntu 24.04, kernel Linux 6.8.0-31-generic - Proprietary NVIDIA 535 drivers. Several games suffer from micro stuttering, both with opengl and vulkan. This problem doesn't exist if I run the same games with an old version (1.1.1086 same kernel, same drivers). The problem started a few months ago. Could it be due to the new avalonia UI? Is there a version 1.1.1291 with the old UI (gtk3) to test?

Reproduction steps

Several games suffer from micro stuttering

Log file

Ryujinx_1.1.1293_2024-04-28_20-16-41.log

OS

Ubuntu linux 24.04

Ryujinx version

1.1.1291

Game version

1.0

CPU

12th Gen Intel® Core™ i5-12400F × 12

GPU

NVIDIA GTX 1650

RAM

16gb

List of applied mods

No response

Additional context?

No response

@prd-ryu prd-ryu added the bug Something isn't working label Apr 28, 2024
@prd-ryu
Copy link
Author

prd-ryu commented Apr 29, 2024

After the last update 1.1.1294, the mcrostuttering problem disappeared. I can't understand how the nature of the update could have affected the solution of the problem. (mouse problems with avalonia UI)? In any case, it's better that way.

@prd-ryu
Copy link
Author

prd-ryu commented Apr 29, 2024

Nothing, after a restart of the pc the problem recurred.
with the old version 1.1.1086 no microstuttering

@RickAndTired
Copy link

If you'd like to give it a try
I think 1.1.1215 is the newest build without Avalonia

https://github.com/Ryujinx/release-channel-master/releases/tag/1.1.1215

@prd-ryu
Copy link
Author

prd-ryu commented May 2, 2024

With the version linked above, the problem of microstuttering is not there. The problem is that some games in my possession don't start, while with the latest release they do. Otherwise I would have used this one. Thank you

@GamerzHell9137
Copy link

With the version linked above, the problem of microstuttering is not there. The problem is that some games in my possession don't start, while with the latest release they do. Otherwise I would have used this one. Thank you

You can also build the master build locally and inside of the Ryujinx,GTK3 folder you'll find the one you want.

@prd-ryu
Copy link
Author

prd-ryu commented May 2, 2024

Thank you. I'll try to study the whole thing. I don't have any skills on compilation.

@prd-ryu
Copy link
Author

prd-ryu commented May 2, 2024

As far as the compilation is concerned, it was successful, but at the time of launching the executable it gave me an error regarding libc6. And here I am stopped for incompetence :)

@prd-ryu
Copy link
Author

prd-ryu commented May 5, 2024

Nothing, I've done countless tests and on some games. Microstuttering is still present. In a minor form but occasionally it shows up. In all versions prior to the introduction of avalonia, microstuttering does not occur. At this point, I deduce that the problem is not in the OS but something related to the new graphical interface.

@prd-ryu
Copy link
Author

prd-ryu commented May 10, 2024

I've done a lot of testing with a few games that were suffering from the problem. After the latest updates I found out that in opengl the problem is solved. Stay using Vulkan. It's not a problem because in opengl on linux the games all run well, with no performance differences with vulkan.
Update:
I restarted my PC and the problem recurred. At this point I give up. I can't tell if it's a problem with ryujinx or with my OS. I will continue to use the old 1.1.1086 which works fine

@prd-ryu
Copy link
Author

prd-ryu commented May 11, 2024

I found the solution. I disabled in the nvidia driver settings "Sync to Vblank" and the stuttering is gone. Also in the latest version of ryujinx.
Edit: Other tests: It has improved but recurs in short moments and sporadically.

@prd-ryu
Copy link
Author

prd-ryu commented May 13, 2024

I did some more tests. I assumed that the problem was the sync. I put the Vulkan driver back in and in the Nvidia panel I checked, as originally, Sync To Vblank. All by default. If you launch the games in a window and then put it in full screen, the problem recurs. By launching the game directly in full screen, there is no stuttering. The problem is resolved. I ask the developers: could it be that by switching from the window to the full screen, the Vsync goes into crisis?

@prd-ryu
Copy link
Author

prd-ryu commented May 17, 2024

I have to change my mind, the problem reappears randomly. With the latest version in gtK3 everything is smooth. Problem occurred after the update with ava. Can't you also put the compiled version in GTK3 as before?

@RickAndTired
Copy link

Disabling logging helped (not fixed) my Avalonia settings lag a bit
I don't have an Nvidia card or the micro stuttering, but might be worth a try

Since it seems Avalonia is the cause of your stuttering, I'm not sure this will help, but since you talked about Vsync -
You could try to disable Vsync in Ryujinx and use MangoHud or something else to set an FPS limit

@prd-ryu
Copy link
Author

prd-ryu commented May 17, 2024

Thank you for your reply. I've already tried to disable the logs. I then followed various guides on the web for vsync with all the possible recommended combinations. The problem is that with a old interface, whatever you put there is no problem. With the new versions, yes. At this point, I think it doesn't matter what changes you make at the os/driver level.
I'll try with mangohud

@prd-ryu
Copy link
Author

prd-ryu commented May 17, 2024

Disabling logging helped (not fixed) my Avalonia settings lag a bit I don't have an Nvidia card or the micro stuttering, but might be worth a try

Since it seems Avalonia is the cause of your stuttering, I'm not sure this will help, but since you talked about Vsync - You could try to disable Vsync in Ryujinx and use MangoHud or something else to set an FPS limit

I have to thank you, I didn't turn off all the logs, and now, after 40 minutes of gameplay, no stuttering

@prd-ryu
Copy link
Author

prd-ryu commented May 18, 2024

Today I played the same game as yesterday and the problem comes up again. At this point I tried to recreate the same conditions as yesterday and maybe I found what causes the stuttering. The latest release of ubuntu suffers from a window overlapping issue. When I launch ryujinx, sometimes, I leave the file manager window open underneath. After various tests I noticed that without windows underneath, there is no stuttering. That's why sometimes there wasn't a problem and sometimes it was. With the gtk3 interface it doesn't. I think I've solved it. I hope :)

@prd-ryu
Copy link
Author

prd-ryu commented May 18, 2024

Nothing. I give up. Problems that are beyond my capabilities. Stuttering recurs randomly. I hope the developers take into account the fact that with the old GTK3 graphics backend the problem was not there. With the new GUI, yes. I pass and close.

@prd-ryu
Copy link
Author

prd-ryu commented May 19, 2024

Here I am, as I get discouraged, but I never give up. Today I tested the old versions 1.1.1215 and 1.1.086 in gtk3 and confirm that they did not suffer from the problem. But there were lines at the bottom of the screen, a symptom of vsync out of sync. I tried mangohud with the latest version of Ryujinx 1.1.1316. Removed Vsync and locked fps to 60 with mangohud. It was a sync issue now solved. For this I thank the good RickAndTired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants