mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03: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 EasyLocalization.ensureInitialized();
|
||||||
await initializeDateFormatting();
|
await initializeDateFormatting();
|
||||||
|
|
||||||
if (kReleaseMode && Platform.isAndroid) {
|
if (Platform.isAndroid) {
|
||||||
try {
|
try {
|
||||||
await FlutterDisplayMode.setHighRefreshRate();
|
await FlutterDisplayMode.setHighRefreshRate();
|
||||||
dPrint(() => "Enabled high refresh mode");
|
dPrint(() => "Enabled high refresh mode");
|
||||||
|
|||||||
Reference in New Issue
Block a user