Skip to content

Commit

Permalink
Android: Enable sustained performance mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyH authored and JosJuice committed Nov 25, 2024
1 parent 401d6e7 commit b667a37
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b667a37

Please sign in to comment.