diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-03-22 02:23:10 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2023-06-03 09:05:44 +0200 |
commit | 1634391bff225e56134ee925852f4344c4a7b11b (patch) | |
tree | 5b3c21238256f83841ea43f1536948428462c0a3 | |
parent | android: Move driver installation off of main thread (diff) | |
download | yuzu-1634391bff225e56134ee925852f4344c4a7b11b.tar yuzu-1634391bff225e56134ee925852f4344c4a7b11b.tar.gz yuzu-1634391bff225e56134ee925852f4344c4a7b11b.tar.bz2 yuzu-1634391bff225e56134ee925852f4344c4a7b11b.tar.lz yuzu-1634391bff225e56134ee925852f4344c4a7b11b.tar.xz yuzu-1634391bff225e56134ee925852f4344c4a7b11b.tar.zst yuzu-1634391bff225e56134ee925852f4344c4a7b11b.zip |
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt | 5 |
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 if (perfStats[FPS] > 0) { binding.showFpsText.text = String.format("FPS: %.1f", perfStats[FPS]) } - perfStatsUpdateHandler.postDelayed(perfStatsUpdater!!, 100) + + if (!emulationState.isStopped) { + perfStatsUpdateHandler.postDelayed(perfStatsUpdater!!, 100) + } } perfStatsUpdateHandler.post(perfStatsUpdater!!) binding.showFpsText.visibility = View.VISIBLE |