Allows the user to switch between performance and battery saving modes (#422)

* add game_mode_config in mainfest

* add ``game_mode_config``
This commit is contained in:
Ishan09811
2024-02-27 12:52:25 +05:30
committed by GitHub
parent 9d8868cffd
commit 43dfda0f19
2 changed files with 11 additions and 0 deletions

View File

@@ -20,6 +20,10 @@
android:hardwareAccelerated="true"
android:theme="@style/Theme.Pandroid"
tools:targetApi="31">
<meta-data android:name="android.game_mode_config"
android:resource="@xml/game_mode_config" />
<activity
android:name=".app.MainActivity"
android:exported="true"

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<game-mode-config
xmlns:android="http://schemas.android.com/apk/res/android"
android:supportsBatteryGameMode="true"
android:supportsPerformanceGameMode="true"
android:allowGameDownscaling="false"
android:allowGameFpsOverride="false"/>