Android: Add presented frame limit option

This commit is contained in:
Connor McLaughlin 2020-11-03 16:13:55 +10:00
parent 96ff8c87e5
commit efc0a7391d
2 changed files with 28 additions and 0 deletions

View File

@ -263,4 +263,24 @@
<item>4-ssaa</item>
<item>8-ssaa</item>
</string-array>
<string-array name="settings_advanced_display_fps_limit_entries">
<item>Unlimited (Display All Frames)</item>
<item>10 FPS</item>
<item>15 FPS</item>
<item>30 FPS</item>
<item>45 FPS</item>
<item>60 FPS</item>
<item>75 FPS</item>
<item>90 FPS</item>
</string-array>
<string-array name="settings_advanced_display_fps_limit_values">
<item>0</item>
<item>10</item>
<item>15</item>
<item>30</item>
<item>45</item>
<item>60</item>
<item>75</item>
<item>90</item>
</string-array>
</resources>

View File

@ -46,6 +46,14 @@
app:defaultValue="true"
app:summary="Makes guest memory access more efficient by using page faults and backpatching. Disable if it is unstable on your device."
app:iconSpaceReserved="false" />
<ListPreference
app:key="Display/MaxFPS"
app:title="Presented Frame Limit"
app:defaultValue="60"
app:entries="@array/settings_advanced_display_fps_limit_entries"
app:entryValues="@array/settings_advanced_display_fps_limit_values"
app:useSimpleSummaryProvider="true"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:key="BIOS/PatchTTYEnable"
app:title="@string/settings_console_tty_output"