Very slow performance on Mario & Luigi: Brothership #452

Open
opened 2024-12-26 21:06:54 +00:00 by SgtPepperman · 7 comments
SgtPepperman commented 2024-12-26 21:06:54 +00:00 (Migrated from github.com)

Description of the issue

The emulator runs very slow (specially with Vulkan, when switching to OpenGL improves at times).
My system can run pretty much any other Switch game without flaw.
I think it may be a memory leak.

Reproduction steps

When using Vulkan, the issue of the FPS drops is constant from the get go.
On the other hand, OpenGL allows for better performance on 30 FPS, then drops and stays like that for a while, then goes up, and so forth.

Log file

Ryujinx_1.2.78_2024-12-26_14-56-11.log
Ryujinx_1.2.78_2024-12-26_15-06-05.log

OS

Windows 11

Ryujinx version

1.2.78

Game version

1.0.0

CPU

Intel Core i5 12400

GPU

NVIDIA GeForce GTX 1650

RAM

16 GB

List of applied mods

None

Additional context?

image

### Description of the issue The emulator runs very slow (specially with Vulkan, when switching to OpenGL improves at times). My system can run pretty much any other Switch game without flaw. I think it may be a memory leak. ### Reproduction steps When using Vulkan, the issue of the FPS drops is constant from the get go. On the other hand, OpenGL allows for better performance on 30 FPS, then drops and stays like that for a while, then goes up, and so forth. ### Log file [Ryujinx_1.2.78_2024-12-26_14-56-11.log](https://github.com/user-attachments/files/18255443/Ryujinx_1.2.78_2024-12-26_14-56-11.log) [Ryujinx_1.2.78_2024-12-26_15-06-05.log](https://github.com/user-attachments/files/18255444/Ryujinx_1.2.78_2024-12-26_15-06-05.log) ### OS Windows 11 ### Ryujinx version 1.2.78 ### Game version 1.0.0 ### CPU Intel Core i5 12400 ### GPU NVIDIA GeForce GTX 1650 ### RAM 16 GB ### List of applied mods None ### Additional context? ![image](https://github.com/user-attachments/assets/6913cf5b-f940-4628-af0c-310cb978212c)
GreemDev commented 2024-12-26 21:28:56 +00:00 (Migrated from github.com)

bad performance does not automatically mean memory leak, please look up terms you don't know before using them

bad performance does not automatically mean memory leak, please look up terms you don't know before using them
SgtPepperman commented 2024-12-27 02:35:26 +00:00 (Migrated from github.com)

please look up terms you don't know before using them

Thanks for looking upon my report, but also was it necessary to be so harsh to me? Sorry for my misplaced conjecture.

> please look up terms you don't know before using them Thanks for looking upon my report, but also was it necessary to be so harsh to me? Sorry for my misplaced conjecture.
Sam-Man16 commented 2024-12-31 15:53:01 +00:00 (Migrated from github.com)

I am getting abnormal performance dips in this game as well. There is a 50/50 chance in battles that framerates will just be halved. This frame dip either ends after the enemies are defeated or can persist for multiple minutes before returning to normal. Not sure what is causing it as my system CPU/RAM/GPU are not running bottlenecked in task manager. I am running the game on Vulkan, I tried switching to OpenGL but the game became overly bright with almost every light source becoming washed out with brightness. EDIT: Also, when the camera pans around in cutscenes or gameplay, sometimes the background graphics overlay the normal graphics causing weird flashing and artifacting.

I am getting abnormal performance dips in this game as well. There is a 50/50 chance in battles that framerates will just be halved. This frame dip either ends after the enemies are defeated or can persist for multiple minutes before returning to normal. Not sure what is causing it as my system CPU/RAM/GPU are not running bottlenecked in task manager. I am running the game on Vulkan, I tried switching to OpenGL but the game became overly bright with almost every light source becoming washed out with brightness. EDIT: Also, when the camera pans around in cutscenes or gameplay, sometimes the background graphics overlay the normal graphics causing weird flashing and artifacting.
entut1 commented 2024-12-31 16:07:40 +00:00 (Migrated from github.com)

the brutal performance dips happen in my case as well. sometimes trimming Ryujinx's memory with Process Lasso can solve them but not always immeditately. @gr3ger seems to have found a bunch of memory-related issues happening in Ryujinx that affect this game. Some of them lead to memory adresses not aligning properly, which causes issues both in OpenGL and Vulkan, but that mostly caused flickering. It wouldn't be too surprising if there's more stuff like that which leads to corruption and leaks further down the line. Hard to say when this will be fixed for now, as it doesn't seem like there's enough people with the knowledge to fix this stuff out there.

the brutal performance dips happen in my case as well. sometimes trimming Ryujinx's memory with Process Lasso can solve them but not always immeditately. @gr3ger seems to have found a bunch of memory-related issues happening in Ryujinx that affect this game. Some of them lead to memory adresses not aligning properly, which causes issues both in OpenGL and Vulkan, but that mostly caused flickering. It wouldn't be too surprising if there's more stuff like that which leads to corruption and leaks further down the line. Hard to say when this will be fixed for now, as it doesn't seem like there's enough people with the knowledge to fix this stuff out there.
Sam-Man16 commented 2025-01-04 21:01:56 +00:00 (Migrated from github.com)

image I am getting a guaranteed crash when trying to go to Heartfreeze Island. This is what shows up in the console, I don't know if it's useful or not or whether this crash might be related to other random crashes / performance issues. Running latest stable release and using Host CPU mode. (EDIT: Software mode does not crash the game/emulator.)

![image](https://github.com/user-attachments/assets/a01e5d21-a2fd-4188-a49c-64d56fbc0788) I am getting a guaranteed crash when trying to go to Heartfreeze Island. This is what shows up in the console, I don't know if it's useful or not or whether this crash might be related to other random crashes / performance issues. Running latest stable release and using Host CPU mode. (EDIT: Software mode does not crash the game/emulator.)
entut1 commented 2025-01-28 08:46:55 +00:00 (Migrated from github.com)

Software mode also seems to fix the harsh FPS drops, but at the cost of overall framerate getting tanked under 30 unless your CPU is very strong.

Software mode also seems to fix the harsh FPS drops, but at the cost of overall framerate getting tanked under 30 unless your CPU is very strong.
entut1 commented 2025-03-10 17:19:01 +00:00 (Migrated from github.com)

the 1.01 update makes the harsh FPS drops less frequent, though they still do happen from time to time.

the 1.01 update makes the harsh FPS drops less frequent, though they still do happen from time to time.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MeloNX/Ryujinx-ryubing#452
No description provided.