Android: Enable sustained performance mode

This commit is contained in:
Jonathan Hamilton 2018-11-11 16:50:40 -08:00 committed by JosJuice
parent 401d6e70f6
commit b667a37c5e

View File

@ -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))