summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Charles Lombardo2023-03-21 21:23:10 -0400
committerGravatar bunnei2023-06-03 00:05:44 -0700
commit1634391bff225e56134ee925852f4344c4a7b11b (patch)
tree5b3c21238256f83841ea43f1536948428462c0a3 /src
parentandroid: Move driver installation off of main thread (diff)
downloadyuzu-1634391bff225e56134ee925852f4344c4a7b11b.tar.gz
yuzu-1634391bff225e56134ee925852f4344c4a7b11b.tar.xz
yuzu-1634391bff225e56134ee925852f4344c4a7b11b.zip
android: Stop updating fps counter when emulation stops
Diffstat (limited to 'src')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
index 37469302d..c02d35f5d 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
@@ -168,7 +168,10 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram
168 if (perfStats[FPS] > 0) { 168 if (perfStats[FPS] > 0) {
169 binding.showFpsText.text = String.format("FPS: %.1f", perfStats[FPS]) 169 binding.showFpsText.text = String.format("FPS: %.1f", perfStats[FPS])
170 } 170 }
171 perfStatsUpdateHandler.postDelayed(perfStatsUpdater!!, 100) 171
172 if (!emulationState.isStopped) {
173 perfStatsUpdateHandler.postDelayed(perfStatsUpdater!!, 100)
174 }
172 } 175 }
173 perfStatsUpdateHandler.post(perfStatsUpdater!!) 176 perfStatsUpdateHandler.post(perfStatsUpdater!!)
174 binding.showFpsText.visibility = View.VISIBLE 177 binding.showFpsText.visibility = View.VISIBLE