mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-03-16 10:38:32 +01:00
Readd frametime
This commit is contained in:
parent
38accad5d2
commit
7eb0bb2170
@ -17,7 +17,7 @@ enum class BooleanSetting(
|
|||||||
INSTANT_DEBUG_LOG("instant_debug_log", Settings.SECTION_DEBUG, false),
|
INSTANT_DEBUG_LOG("instant_debug_log", Settings.SECTION_DEBUG, false),
|
||||||
CUSTOM_LAYOUT("custom_layout",Settings.SECTION_LAYOUT,false),
|
CUSTOM_LAYOUT("custom_layout",Settings.SECTION_LAYOUT,false),
|
||||||
SHOW_FPS("show_fps", Settings.SECTION_LAYOUT, true),
|
SHOW_FPS("show_fps", Settings.SECTION_LAYOUT, true),
|
||||||
SHOW_FRAMETIME("show_frame_time", Settings.SECTION_LAYOUT, false),
|
SHOW_FRAMETIME("show_frame_time", Settings.SECTION_LAYOUT, false),
|
||||||
SHOW_SPEED("show_speed", Settings.SECTION_LAYOUT, false),
|
SHOW_SPEED("show_speed", Settings.SECTION_LAYOUT, false),
|
||||||
SHOW_APP_RAM_USAGE("show_app_ram_usage", Settings.SECTION_LAYOUT, false),
|
SHOW_APP_RAM_USAGE("show_app_ram_usage", Settings.SECTION_LAYOUT, false),
|
||||||
SHOW_SYSTEM_RAM_USAGE("show_system_ram_usage", Settings.SECTION_LAYOUT, false),
|
SHOW_SYSTEM_RAM_USAGE("show_system_ram_usage", Settings.SECTION_LAYOUT, false),
|
||||||
|
@ -1072,6 +1072,16 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add(
|
||||||
|
SwitchSetting(
|
||||||
|
BooleanSetting.SHOW_FRAMETIME,
|
||||||
|
R.string.show_frametime,
|
||||||
|
R.string.show_frametime_description,
|
||||||
|
"show_frame_time",
|
||||||
|
true
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
add(
|
add(
|
||||||
SwitchSetting(
|
SwitchSetting(
|
||||||
BooleanSetting.SHOW_SPEED,
|
BooleanSetting.SHOW_SPEED,
|
||||||
|
@ -1161,6 +1161,16 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram
|
|||||||
sb.append(String.format("FPS: %d", (perfStats[FPS] + 0.5).toInt()))
|
sb.append(String.format("FPS: %d", (perfStats[FPS] + 0.5).toInt()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (BooleanSetting.SHOW_FRAMETIME.boolean) {
|
||||||
|
if (sb.isNotEmpty()) sb.append(" | ")
|
||||||
|
sb.append(
|
||||||
|
String.format(
|
||||||
|
"FT: %.1fms",
|
||||||
|
(perfStats[FRAMETIME] * 1000.0f).toFloat()
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if (BooleanSetting.SHOW_SPEED.boolean) {
|
if (BooleanSetting.SHOW_SPEED.boolean) {
|
||||||
if (sb.isNotEmpty()) sb.append(" | ")
|
if (sb.isNotEmpty()) sb.append(" | ")
|
||||||
sb.append(
|
sb.append(
|
||||||
|
@ -487,6 +487,8 @@
|
|||||||
<string name="stats_overlay_options_description">Configure what information is shown in the performance stats overlay</string>
|
<string name="stats_overlay_options_description">Configure what information is shown in the performance stats overlay</string>
|
||||||
<string name="show_fps">Show FPS</string>
|
<string name="show_fps">Show FPS</string>
|
||||||
<string name="show_fps_description">Display current frames per second</string>
|
<string name="show_fps_description">Display current frames per second</string>
|
||||||
|
<string name="show_frametime">Show Frametime</string>
|
||||||
|
<string name="show_frametime_description">Display current frametime</string>
|
||||||
<string name="show_speed">Show Speed</string>
|
<string name="show_speed">Show Speed</string>
|
||||||
<string name="show_speed_description">Display current emulation speed percentage</string>
|
<string name="show_speed_description">Display current emulation speed percentage</string>
|
||||||
<string name="show_app_ram_usage">Show App Memory Usage</string>
|
<string name="show_app_ram_usage">Show App Memory Usage</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user