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:
@@ -20,6 +20,10 @@
|
|||||||
android:hardwareAccelerated="true"
|
android:hardwareAccelerated="true"
|
||||||
android:theme="@style/Theme.Pandroid"
|
android:theme="@style/Theme.Pandroid"
|
||||||
tools:targetApi="31">
|
tools:targetApi="31">
|
||||||
|
|
||||||
|
<meta-data android:name="android.game_mode_config"
|
||||||
|
android:resource="@xml/game_mode_config" />
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".app.MainActivity"
|
android:name=".app.MainActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
|
|||||||
7
src/pandroid/app/src/main/res/xml/game_mode_config.xml
Normal file
7
src/pandroid/app/src/main/res/xml/game_mode_config.xml
Normal 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"/>
|
||||||
Reference in New Issue
Block a user