Ryujinx icon indicating copy to clipboard operation
Ryujinx copied to clipboard

[Bug] TOTK Persistent performance issue in the depths

Open systox opened this issue 1 year ago • 8 comments

Description of the issue

A persistent FPS drop occurs while exploring the depths that is accompanied by rhythmic hitching.

Fresh load or warp into area (no hitching, smooth gameplay):

https://github.com/Ryujinx/Ryujinx/assets/50300640/4d26cf69-ae60-4a7d-8fcf-7a4e85dbb582

After some exploring (Average FPS drop + Rhythmic Hitching):

https://github.com/Ryujinx/Ryujinx/assets/50300640/611ff934-88e7-42dd-91d8-6bc1341406e0

Reproduction steps

Load into the depths. Appreciate smooth gameplay. Explore a dark area, run around, and then head back to the light. Inspect for hitching and performance drop.

Log file

Ryujinx_1.1.843_2023-05-31_14-01-14.log

OS

Windows 11

Ryujinx version

1.1.843

Game version

TOTK 1.1.2

CPU

5800x3d

GPU

RTX 4090

RAM

32 GB

List of applied mods

None

Additional context?

This is easiest to demonstrate with Vsync off (as seen in video), but also occurs with vsync on.

Vulkan API Playing on 2x scale but also happens at native.

Performance graph with arrows pointing to when the hitching starts. VRAM spikes a bit but nowhere near capacity so not sure what's causing this. performance

The issue can be transiently alleviated by saving and loading the save or warping. However, the issue rapidly returns when exploring into the dark of the depths.

systox avatar May 31 '23 18:05 systox

IDK if it’s gremlins or what. This was super reproducible but now after switching to openGL and back to vulkan, purging shaders, and deleting PPTC, i can no longer trigger the bug…

systox avatar May 31 '23 20:05 systox

You're not alone. It happened to me while fighting one of the constructs in the depths. I think it's got something to do with physics? Specs are about the same, 4090 but a 9900k. Everything else runs fine.

yoyoinneverland avatar Jun 01 '23 00:06 yoyoinneverland

I'm not sure. It's happening again. For me, it's most reliably triggered when exploring a new area in the depths.

I'd say it had something to do with new shaders being loaded but the hitching and low fps sticks around for the rest of the gameplay session unless teleporting or loading a save. I checked VRAM and RAM, both have plenty of remaining space. IDK :/.

Probably gonna need one of the developers to walk me through debugging this one.

systox avatar Jun 01 '23 01:06 systox

The forces of Ganon continue to assault FPS in the depths on recent update to 1.1.850.

systox avatar Jun 01 '23 13:06 systox

The forces of Ganon continue to assault FPS in the depths on recent update to 1.1.850.

I've been exploring the depths for a long while and that construct fight was my only issue so far with performance in there. Have you enabled "Graphics Backend Multithreading"? I've had this enabled for sometime because I saw a small performance increase from doing so. Maybe it will help you. I don't know.

yoyoinneverland avatar Jun 01 '23 20:06 yoyoinneverland

Thanks for the suggestion. Just double checked and its already enabled. Who knows :(. The performance drop feels like the CPU starts running circles around itself until jolted out of the loop by teleporting or reloading. Wish I could see what the hangup is.

systox avatar Jun 01 '23 20:06 systox

Thanks for the suggestion. Just double checked and its already enabled. Who knows :(. The performance drop feels like the CPU starts running circles around itself until jolted out of the loop by teleporting or reloading. Wish I could see what the hangup is.

Think it might have something to do with the version of your game too. Mine is 1.0.0? I believe.

yoyoinneverland avatar Jun 01 '23 22:06 yoyoinneverland

I’ll give 1.0.0 a shot tomorrow. Won’t hurt to try it out and see.

systox avatar Jun 02 '23 02:06 systox