From 7000141e096827e3b9416fa46a6e2d2dabe5702e Mon Sep 17 00:00:00 2001 From: Jonathan Hamilton Date: Sun, 11 Nov 2018 16:50:40 -0800 Subject: [PATCH] Android: Enable sustained performance mode --- .../dolphinemu/dolphinemu/activities/EmulationActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java index 644fca916fcb..d44dccb8f23e 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java @@ -7,6 +7,7 @@ import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Rect; +import android.os.Build; import android.os.Bundle; import android.preference.PreferenceManager; import android.text.TextUtils; @@ -296,6 +297,11 @@ protected void onCreate(Bundle savedInstanceState) if (NativeLibrary.IsGameMetadataValid()) setTitle(NativeLibrary.GetCurrentTitleDescription()); + + if (Build.VERSION.SDK_INT >= 24) + { + getWindow().setSustainedPerformanceMode(true); + } } @Override