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

UI extreme laggy on linux (modrinth 0.7.x to 0.9.x) #1142

Open
cerealconjugo opened this issue Apr 24, 2024 · 12 comments
Open

UI extreme laggy on linux (modrinth 0.7.x to 0.9.x) #1142

cerealconjugo opened this issue Apr 24, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@cerealconjugo
Copy link

Describe the bug

Navigate through the UI its painfully laggy after updating to the last release .

Steps to reproduce

  1. update Modrinth Theseus from 0.6.3 to 0.7.1 on Linux
  2. try to scroll on any list to experience lag

Expected behavior

A smooth UI navigation

System information

Linux Mint 21.3 Cinnamon

Additional context

it used to work great before, i tried re-install to see if it fix the problem, but didn't. Scroll on pages like settings didn't lag at all

@cerealconjugo cerealconjugo added the bug Something isn't working label Apr 24, 2024
@jcv99
Copy link

jcv99 commented Apr 30, 2024

Same on fedora 39 with appimage.
Operating System: Fedora Linux 39
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.8.7-200.fc39.x86_64 (64-bit)
Graphics Platform: X11
Processors: 16 × Intel® Core™ i7-10700KF CPU @ 3.80GHz
Memory: 15,5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3070/PCIe/SSE2
Manufacturer: ASUS

@DUDEbehindDUDE
Copy link

DUDEbehindDUDE commented May 8, 2024

Same issue with a fresh install of Mint 21.3 Cinnamon
(Ryzen 5 2600, RTX 2060, 32GB RAM)

@linuxchr
Copy link

Same issue on Arch with Hyprland.
(Ryzen 7 5800x, RX 7700, 32GB)

@Celvee0
Copy link

Celvee0 commented May 16, 2024

Same issue with Arch and Awesome
(Ryzen 5 3600, GTX 1650S, 24GB)

@eatmyvenom
Copy link

Same again on KDE plasma 6.0+ (wayland)

@const-brick
Copy link

Same again on Debian 12.

From prior experience, on Linux, tauri apps have lots of performance / general issues due to webkitgtk.

@Kristoffeh
Copy link

Why was this marked as completed? When this issue still has not been resolved.

@DUDEbehindDUDE
Copy link

^ I feel like this issue has gotten worse with the UI overhaul from v0.9.x

@MarcPG1905
Copy link

For me it has become completely unusable and I had to switch over to another launcher for now. Just fix your damn webui thing or whatever it's called, it can't be that complicated.

@cerealconjugo cerealconjugo reopened this Jan 16, 2025
@cerealconjugo cerealconjugo changed the title UI extreme laggy after updating to 0.7.1 on linux mint UI extreme laggy on linux (modrinth 0.7.x to 0.9.x) Jan 16, 2025
@cerealconjugo
Copy link
Author

The issue stills unsolved

@SquidDev
Copy link

SquidDev commented Jan 16, 2025

This appears to be an issue with libwebkitgtk on Arch (and I assume other Linux distributions). For example, compare running the AUR version of the app (modrinth-app-bin):

Kooha-2025-01-16-10-46-58.webm

Via running the Flatpak version:

Kooha-2025-01-16-10-47-49.webm

I've been unable to get the AppImage to work (Could not create default EGL display: EGL_BAD_PARAMETER. Aborting...), which is a fairly common issue with Tauri sadly (e.g. gitbutlerapp/gitbutler#5282).

The actual issue in question appears to be (not an expert her!) that the distribution's version of webkit is not using hardware acceleration. This can be confirmed by looking at a flamegraph of the app while scrolling:

A flamegraph of the modrinth app. The majority of time is being spent in a function called cairo_fill and its various children.

I don't think there's anything the Modrinth team can do to resolve this. This is either an issue with upstream webkit, or the distribution's version of it. If someone wants to have a go rebuilding webkitgtk with its new Skia support, it would be interesting to compare.

For now, I'd recommend people use the flatpak.

@MarcPG1905
Copy link

I have already seen that the Flatpak version has normal performance, but there's a major issue (can't find the issue ID right now), where the Modrinth app will not launch on some systems, which is why there's a modrinth-app-segfault-fix package on the AUR. The Flatpak sadly does not have this fix included, meaning me and many other users are unable to use it.

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

No branches or pull requests

10 participants