From b667a37c5e8961299c8d3251c24a0c24b84c0040 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 --- .../org/dolphinemu/dolphinemu/activities/EmulationActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.kt index cb2b0f89c9..837c1a6c1e 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.kt @@ -130,6 +130,10 @@ class EmulationActivity : AppCompatActivity(), ThemeProvider { if (NativeLibrary.IsGameMetadataValid()) title = NativeLibrary.GetCurrentTitleDescription() + if (Build.VERSION.SDK_INT >= 24) { + getWindow().setSustainedPerformanceMode(true) + } + if (skylanderSlots.isEmpty()) { for (i in 0..7) { skylanderSlots.add(SkylanderSlot(getString(R.string.skylander_slot, i + 1), i))