Skip to content

Commit

Permalink
Remove useless wait loop since we join the thread anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 25, 2023
1 parent 4d46567 commit 91119c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions android/jni/app-android.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 91119c7

Please sign in to comment.