yuzu-android/src/yuzu_tester
comex 994f497781 Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main thread
EmuWindow::PollEvents was called from the GPU thread (or the CPU thread
in sync-GPU mode) when swapping buffers.  It had three implementations:

- In GRenderWindow, it didn't actually poll events, just set a flag and
  emit a signal to indicate that a frame was displayed.

- In EmuWindow_SDL2_Hide, it did nothing.

- In EmuWindow_SDL2, it did call SDL_PollEvents, but this is wrong
  because SDL_PollEvents is supposed to be called on the thread that set
  up video - in this case, the main thread, which was sleeping in a
  busyloop (regardless of whether sync-GPU was enabled).  On macOS this
  causes a crash.

To fix this:

- Rename EmuWindow::PollEvents to OnFrameDisplayed, and give it a
  default implementation that does nothing.

- In EmuWindow_SDL2, do not override OnFrameDisplayed, but instead have
  the main thread call SDL_WaitEvent in a loop.
2020-11-23 17:58:49 -05:00
..
emu_window Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main thread 2020-11-23 17:58:49 -05:00
service yuzu_tester: Silence type conversion warning 2020-06-22 22:56:15 -04:00
CMakeLists.txt core: Remove usage of unicorn 2020-11-03 20:22:05 -05:00
config.cpp configure_input: Add per-player vibration 2020-11-15 23:33:20 -05:00
config.h yuzu_tester: Use config, icon, and main from yuzu-cmd 2019-06-10 00:03:11 -04:00
default_ini.h configuration: Add settings to enable/disable specific CPU optimizations 2020-07-11 14:34:09 +01:00
resource.h yuzu_tester: Use config, icon, and main from yuzu-cmd 2019-06-10 00:03:11 -04:00
yuzu.cpp video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
yuzu.rc Fix: fatal error CVT1100 when compiling manifest file 2020-06-21 03:11:23 +02:00