mirror of
https://github.com/immich-app/immich.git
synced 2026-03-03 03:57:01 +00:00
chore(mobile): enable high refresh rate in debug builds (#26085)
I'm testing changes to animations and app performance, and noticed it felt quite sluggish on a 120hz display. It turns out that high refresh is disabled in debug builds. It's probably a good idea to enable it so that it more closely mirrors the production build.
This commit is contained in:
@@ -75,7 +75,7 @@ Future<void> initApp() async {
|
||||
await EasyLocalization.ensureInitialized();
|
||||
await initializeDateFormatting();
|
||||
|
||||
if (kReleaseMode && Platform.isAndroid) {
|
||||
if (Platform.isAndroid) {
|
||||
try {
|
||||
await FlutterDisplayMode.setHighRefreshRate();
|
||||
dPrint(() => "Enabled high refresh mode");
|
||||
|
||||
Reference in New Issue
Block a user