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 7, 2021
1 parent be90354 commit 7000141
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7000141

Please sign in to comment.