r/FlutterDev • u/KayJune001 • 3d ago
Discussion Why is Flutter Impeller performance still terrible on Linux?
I just spent 6 hours mindlessly chasing ghosts trying to reduce frame times in my Linux program, tried x11 vs Wayland vs xWayland, different DEs and distros, while absolutely no issues exist on Windows, macOS, Android, and iOS. Turns out i just needed to purposefully switch to Skia, which dropped my frame times from 100+ ms to under 16ms? That seems counter intuitive.
24
Upvotes
11
u/airflow_matt 3d ago
I agree, Impeller on desktop right now is a little bit rough. Definitely worth filing bug with reproducible steps.
5
u/uldall 3d ago
We are also experiencing bad performance with impeller on Linux in our app.
3
u/SoloRack-cloud 3d ago
yeah impeller on linux desktop still feels way less mature than on mobile. on ios/android it's been the main renderer for a while and got tons of tuning, desktop linux has to deal with every possible gpu + driver + compositor combo
100ms+ frames sounds a lot like it's falling back to software rendering though. worth checking if you're on llvmpipe (glxinfo | grep renderer, or vulkaninfo --summary) and what gpu/driver you have. nvidia proprietary drivers especially have been a pain for a lot of people
i'd stick with skia on linux for now and open an issue on the flutter repo with flutter doctor -v, your gpu, driver version and x11/wayland. they do look at those and a 6x slowdown with a clean repro is exactly what they need
2
u/laplace_apps 3d ago
Since it reproduces across distros and compositors, a minimal repro plus a profile-mode DevTools timeline in a GitHub issue will get the most traction. Until it's fixed, staying on Skia for Linux builds seems like a reasonable workaround.
1
u/International-Cook62 11h ago
There is an unofficial way to do this, just point an llm here to describe how https://github.com/denialwm/denial
1
u/Previous-Display-593 3d ago
Linux graphics driver ecosystem is shit.
-17
u/Dan_of_Earth 3d ago
i think flutter just really sucks for performance in general. im pretty new to it but im finding it pretty expensive for basic things