summaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-02-19 11:41:08 +0100
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:32 +0200
commitdcbf0c43c0042be2c730ddd58da08944b71e0544 (patch)
tree8c35a824b9e8a839f7913a29ae90cdad71a66ecc /src/android
parentandroid: vulkan: Implement adrenotools turbo mode. (diff)
downloadyuzu-dcbf0c43c0042be2c730ddd58da08944b71e0544.tar
yuzu-dcbf0c43c0042be2c730ddd58da08944b71e0544.tar.gz
yuzu-dcbf0c43c0042be2c730ddd58da08944b71e0544.tar.bz2
yuzu-dcbf0c43c0042be2c730ddd58da08944b71e0544.tar.lz
yuzu-dcbf0c43c0042be2c730ddd58da08944b71e0544.tar.xz
yuzu-dcbf0c43c0042be2c730ddd58da08944b71e0544.tar.zst
yuzu-dcbf0c43c0042be2c730ddd58da08944b71e0544.zip
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.java5
-rw-r--r--src/android/app/src/main/jni/native.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.java
index cc190eb7f..2a2b0f68b 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.java
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.java
@@ -195,11 +195,10 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
{
final double[] perfStats = NativeLibrary.GetPerfStats();
if (perfStats[FPS] > 0) {
- mPerfStats.setText(String.format("FPS: %d Speed: %d%%", (int) (perfStats[FPS]),
- (int) (perfStats[SPEED] * 100.0)));
+ mPerfStats.setText(String.format("FPS: %.1f", perfStats[FPS]));
}
- perfStatsUpdateHandler.postDelayed(perfStatsUpdater, 3000);
+ perfStatsUpdateHandler.postDelayed(perfStatsUpdater, 100);
};
perfStatsUpdateHandler.post(perfStatsUpdater);
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp
index a8f3d135e..2413a78f0 100644
--- a/src/android/app/src/main/jni/native.cpp
+++ b/src/android/app/src/main/jni/native.cpp
@@ -198,7 +198,7 @@ public:
while (true) {
{
std::unique_lock lock(m_mutex);
- if (m_cv.wait_for(lock, std::chrono::milliseconds(100),
+ if (m_cv.wait_for(lock, std::chrono::milliseconds(800),
[&]() { return !m_is_running; })) {
// Emulation halted.
break;