From 91119c70520e88884e4fed76cd8e03b152c9d0a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 26 Sep 2023 00:50:36 +0200 Subject: [PATCH] Remove useless wait loop since we join the thread anyway --- android/jni/app-android.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/android/jni/app-android.cpp b/android/jni/app-android.cpp index ffe7e411b61b..8433de74426e 100644 --- a/android/jni/app-android.cpp +++ b/android/jni/app-android.cpp @@ -1310,9 +1310,7 @@ extern "C" void JNICALL Java_org_ppsspp_ppsspp_NativeActivity_requestExitVulkanR return; } exitRenderLoop = true; - while (renderLoopRunning) { - sleep_ms(5); - } + // The caller joins the thread anyway, so no point in doing a wait loop here, only leads to misleading hang diagnostics. } void correctRatio(int &sz_x, int &sz_y, float scale) {