code icon indicating copy to clipboard operation
code copied to clipboard

Extremely bad performance of the Modrinth App (Linux)

Open CyraLX opened this issue 11 months ago • 12 comments

Please confirm the following.

  • [x] I checked the existing issues for duplicate problems
  • [x] I have tried resolving the issue using the support portal
  • [x] I have ensured my Modrinth App installation is up to date

What version of the Modrinth App are you using?

0.9.2

What operating systems are you seeing the problem on?

Linux

Describe the bug

Using Pop!_OS 22.04 LTS with the .deb and Appimage packages

Trying to do anything makes the app run at ~1fps, making it extremely unwieldy. Only thing is "unaffected as much" is the category selections on the Settings page of the app. Turning Advanced Rendering on and off doesn't seems do anything regarding the issue.

Steps to reproduce

  1. Open the app
  2. Do literally anything

Expected behavior

No performance issues, again

Additional context

I've made a report on this exact same issue before the UI redesign: #1222 However this time it appears to effect almost every aspect of the app

My laptop does have integrated and dedicated graphics, but even if the app was using integrated, it wouldn't be THIS bad of a performance

OS: Linux x86 64-bit (Pop!_OS 22.04 LTS) GPU: Nvidia GeForce GTX 1660 Ti Mobile GPU Driver: Nvida Driver 560.35.03

App: Modrinth App 0.9.2 Linux 22.4.0

CyraLX avatar Jan 03 '25 08:01 CyraLX

Also something to add that when doing literally anything one of my CPU cores max out to 100%, alternating between different cores but always consistently only 1 being maxed to 100%. Doing nothing on the app doesn't seem to do anything weird with the CPU cores

CyraLX avatar Jan 03 '25 08:01 CyraLX

Having an extremely similar experience on debian 12 (with 3070 rtx and 535 nvidia drivers iirc), also with both the appimage and deb package. Just about any icon, if hovered over, creates extreme lag/low fps and usually maxes out one of my cpu cores to 100%. Also exception (at least on the main home page of app) seems to be the news section/icons. Those dont seem to lower fps or create any big cpu stress.

pokahs avatar Jan 05 '25 21:01 pokahs

Also something to add that when doing literally anything one of my CPU cores max out to 100%, alternating between different cores but always consistently only 1 being maxed to 100%.

#1216 is the issue if you were looking for that :)

imheavi avatar Jan 06 '25 00:01 imheavi

Same issue as #3057, the app has become unusable on Linux+Nvidia. But for your case, running it on integrated graphics and enabling hardware rendering should work. Something like DRI_PRIME=1 /opt/modrinth-app/modrinth-app I think

malucard avatar Jan 09 '25 20:01 malucard

Same here. Arch linux rolling, X11, i3, proprietary nvidia drivers. In case this helps anyone, reducing window size alleviates the issue (less pixels).

jxtrt avatar Jan 13 '25 18:01 jxtrt

Same issue as #3057, the app has become unusable on Linux+Nvidia. But for your case, running it on integrated graphics and enabling hardware rendering should work. Something like DRI_PRIME=1 /opt/modrinth-app/modrinth-app I think

This didn't work for me. I have the same issue on Linux Mint 21.1 with the nvidia driver 535.183.01, with both the .deb and the .AppImage.

watchingdogs avatar Jan 14 '25 12:01 watchingdogs

Same issue as #3057, the app has become unusable on Linux+Nvidia. But for your case, running it on integrated graphics and enabling hardware rendering should work. Something like DRI_PRIME=1 /opt/modrinth-app/modrinth-app I think

This didn't work for me. I have the same issue on Linux Mint 21.1 with the nvidia driver 535.183.01, with both the .deb and the .AppImage.

Do you have integrated graphics? The important part is not running the app on Nvidia graphics, because of a crash issue with Nvidia's drivers, and enabling hardware rendering, because the slowness is caused by software rendering (which was enabled by default to work around the Nvidia crashes).

malucard avatar Jan 14 '25 13:01 malucard

If you can, try flatpak version.

Damglador avatar Jan 14 '25 23:01 Damglador

If you can, try flatpak version.

latest flatpak not even launching

nicoluvas avatar Feb 06 '25 12:02 nicoluvas

I'm having the same issue. I'm not even using NVidia though, nor I have a dedicated gpu. I'm on a Ryzen laptop. The 'one core at 100%' doesn't happen to me. But It's also quite unstable, even dumped core one time. This was in my journalctl right before the coredump, idk if it helps: kernel: modrinth-app[3107]: segfault at 0 ip 00007c4d645e2523 sp 00007ffcf8820e80 error 4 in libwebkit2gtk-4.1.so.0.16.7[15db523,7c4d63f36000+3824000] likely on CPU 7 (core 3, socket 0) kernel: Code: cc cc cc cc cc cc cc 55 48 89 e5 31 c0 5d c3 cc cc cc cc cc cc cc cc 55 48 89 e5 48 8b 47 18 48 8b 40 28 48 8b b8 68 01 00 00 <48> 8b 07 48 8b 40 10 5d ff e0 cc cc cc 55 48 89 e5 > systemd-coredump[3392]: Process 3107 (modrinth-app) of user 1000 terminated abnormally with signal 11/SEGV, processing... systemd[1]: Created slice Slice /system/systemd-coredump. systemd[1]: Started Process Core Dump (PID 3392/UID 0).

PribylIon avatar Feb 13 '25 11:02 PribylIon

If you can, try flatpak version.

latest flatpak not even launching

Are you getting the OS error 18 as well?

StayPuftMarshmallowMan avatar Feb 14 '25 21:02 StayPuftMarshmallowMan

Maybe this helps the developers as well: https://termbin.com/tf9r

MelanX avatar Mar 04 '25 08:03 MelanX

I hope this gets fixed soon (I have to use prism until fixed) the problem is with Tauri Though

Jacob0225 avatar Apr 06 '25 19:04 Jacob0225

If you can, try flatpak version.

latest flatpak not even launching

Are you getting the OS error 18 as well?

nope, the webkit one (fedora + gnome + nvidia)

ERROR: WebKit encountered an internal error. This is a WebKit bug.
/buildstream/gnome/sdk/webkit2gtk-4.1.bst/Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp(577) : internallyFailedLoadTimerFired

nicoluvas avatar Apr 22 '25 00:04 nicoluvas

I'm having the same issue, the flatpak version won't launch as well.

Orzech05 avatar Apr 27 '25 17:04 Orzech05

I have a similiar problem, it's extremely laggy, it runs at like 5 - 10 fps. I use an proprietary nvidia driver. Linux Mint 22.1 x64.

Notenlish avatar May 05 '25 19:05 Notenlish

Today I noticed the app wasn't laggy. I am not sure what I did led to me fixing this, but I will put some commands I ran(while trying to get davinci resolve to work) here in case it helps anyone:

sudo ubuntu-drivers autoinstall
reboot
sudo apt install mesa-utils

I also set my PRIME profile in the Nvidia X Server Settings app to be performance mode.

Edit: after rebooting the lag is back.

Notenlish avatar May 06 '25 21:05 Notenlish

Same issue as #3057, the app has become unusable on Linux+Nvidia. But for your case, running it on integrated graphics and enabling hardware rendering should work. Something like DRI_PRIME=1 /opt/modrinth-app/modrinth-app I think

Can confirm that this works on the AUR package. I only have an intel iGPU. (thinkpad t430 i5-3320M)

almostahexagon2 avatar May 15 '25 03:05 almostahexagon2

Same issue as #3057, the app has become unusable on Linux+Nvidia. But for your case, running it on integrated graphics and enabling hardware rendering should work. Something like DRI_PRIME=1 /opt/modrinth-app/modrinth-app I think

@malucard Got the issue on Linux Mint 22, with an RTX 3090 and Ryzen 7600. How would I apply your fix? I'm a bit of a Linux noob, so apologies for missing what should be obvious.

edit: I'm also using the flatpak version, with this override command on it: flatpak override --user --env=WEBKIT_DISABLE_DMABUF_RENDERER=1 --env=LIBGL_ALWAYS_SOFTWARE=1 --env=GDK_BACKEND=x11 com.modrinth.ModrinthApp

ArgentVASIMR avatar Jul 12 '25 13:07 ArgentVASIMR

@ArgentVASIMR Since you do have an iGPU, replace those --env= flags with just --env=DRI_PRIME=1 to make it use the iGPU

malucard avatar Jul 14 '25 06:07 malucard

@ArgentVASIMR Since you do have an iGPU, replace those --env= flags with just --env=DRI_PRIME=1 to make it use the iGPU

Thanks for getting back to me! Just re-ran it now, it performs only slightly better than it did before, maybe just as bad. How do I know for certain that it's using the iGPU?

ArgentVASIMR avatar Jul 14 '25 06:07 ArgentVASIMR

Hello! Similar issue where preformance is terrible, and flatpaks aren't launching. Running RPMFusion drivers. Here's my fastfetch: Edit: I'm getting the WebKit error when running flatpak, the RPM is not working at all, and the app image runs at ~1 fps. Image

ItsPercent avatar Jul 14 '25 19:07 ItsPercent

Consolidated into #3057

Prospector avatar Sep 02 '25 21:09 Prospector