1

Flutter application is extremely slow on linux. The performance tab shows 15fps and it never goes beyond that. I was unable to find any explanation or possible solution for this issue. Any suggestions?

clang version 10.0.0-4ubuntu1/ cmake version 3.16.3/ ninja version 1.10.0/ pkg-config version 0.29.1/ OS : Fedora Linux

aminbhst
  • 75
  • 7
  • even on the most simple code created with `flutter create` command? what are the average frame times? – pskink Nov 25 '22 at 10:00
  • @pskink yeah it's not like it's got some crazy animations or anything. I run the same code on windows and I get solid 60fps. The avg fps never goes beyond 15 on linux tho. It's got nothing to do with the code itself. It's just generally extremely slow. Like when you hover over buttons and stuff like that – aminbhst Nov 26 '22 at 07:36
  • i have solid 60 FPS, Linux mint, flutter 3.6 – pskink Nov 26 '22 at 08:17
  • @pskink the numbers are over 60 for me. sometimes even going as high as 230 – aminbhst Nov 26 '22 at 09:43
  • and what does `top -i` command show? – pskink Nov 26 '22 at 10:23

1 Answers1

1

For anyone potentially running into the same problem, this was either an issue with my OS or my flutter SDK. I initially installed the SDK using snap but after reinstalling my OS I installed it by cloning the github repo and setting the path variable etc... (the way explained in the official website) and the issue was resolved.

aminbhst
  • 75
  • 7