android: Fixed UI perf regression w/ OpenGL introduced by #617

This commit is contained in:
OpenSauce04 2025-08-10 19:50:47 +01:00 committed by OpenSauce
parent c86830313e
commit 68aab3e0e5
2 changed files with 1 additions and 2 deletions

View File

@ -219,6 +219,6 @@ void EmuWindow_Android_OpenGL::TryPresenting() {
eglMakeCurrent(egl_display, egl_surface, egl_surface, egl_context); eglMakeCurrent(egl_display, egl_surface, egl_surface, egl_context);
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
eglSwapInterval(egl_display, Settings::values.use_vsync_new ? 1 : 0); eglSwapInterval(egl_display, Settings::values.use_vsync_new ? 1 : 0);
system.GPU().Renderer().TryPresent(100, is_secondary); system.GPU().Renderer().TryPresent(0, is_secondary);
eglSwapBuffers(egl_display, egl_surface); eglSwapBuffers(egl_display, egl_surface);
} }

View File

@ -290,7 +290,6 @@ static Core::System::ResultStatus RunCitra(const std::string& filepath) {
std::unique_lock pause_lock{paused_mutex}; std::unique_lock pause_lock{paused_mutex};
running_cv.wait(pause_lock, [] { return !pause_emulation || stop_run; }); running_cv.wait(pause_lock, [] { return !pause_emulation || stop_run; });
window->PollEvents(); window->PollEvents();
// if (secondary_window) secondary_window->PollEvents();
} }
} }