'How to set frame rate of flutter app running on linux

I am developing a flutter app for linux, the first time I compiled the code it gave me a warning that frame rate is set to 30 due to some reason which unfortunately I don't remember and I can't reproduce the warning.

And now the app runs at 30 fps and feel laggy. How to set the frame rate in code to at least 60 fps?



Solution 1:[1]

Check out this package to set custom Hz and screen resolution - flutter_displaymode.

Original link

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Legend5366