yuzu-android/src/core
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
..
arm cpu_interrupt_handler: Mark move contructor/assignment as deleted 2020-11-08 15:37:04 -05:00
crypto Revert "core: Fix clang build" 2020-10-20 19:07:39 -07:00
file_sys patch_manager: Remove usages of the global system instance 2020-11-18 09:36:48 -05:00
frontend Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main thread 2020-11-23 17:58:49 -05:00
gdbstub Revert "core: Fix clang build" 2020-10-20 19:07:39 -07:00
hle Merge pull request #4944 from lioncash/system-rem 2020-11-21 22:12:34 -08:00
loader patch_manager: Remove usages of the global system instance 2020-11-18 09:36:48 -05:00
memory core/CMakeLists: Make some warnings errors 2020-10-13 13:16:49 -04:00
network core: Fix clang build pt.3 2020-10-21 22:14:23 -04:00
tools freezer: Move entry finding to its own function 2020-08-06 03:11:21 -04:00
CMakeLists.txt hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled functions. 2020-11-19 12:36:09 -08:00
constants.cpp constants: Extract backup JPEG used by account services 2019-06-07 17:46:57 -04:00
constants.h constants: Add missing <array> include 2020-07-16 21:43:20 -04:00
core_timing_util.cpp Revert "core: Fix clang build" 2020-10-20 19:07:39 -07:00
core_timing_util.h Revert "core: Fix clang build" 2020-10-20 19:07:39 -07:00
core_timing.cpp Revert "core: Fix clang build" 2020-10-20 19:07:39 -07:00
core_timing.h core_timing: Make use of uintptr_t to represent user_data 2020-07-27 21:21:01 -04:00
core.cpp patch_manager: Remove usages of the global system instance 2020-11-18 09:36:48 -05:00
core.h service: time: Update current time with changes to RTC setting. 2020-10-12 18:09:15 -07:00
cpu_manager.cpp core: cpu_manager: Add missing call to MicroProfileOnThreadExit(). 2020-10-26 16:09:15 -07:00
cpu_manager.h cpu_manager: Mark function getters as static 2020-07-16 13:30:56 -04:00
device_memory.cpp device_memory: Remove unused system member 2020-07-27 23:37:49 -04:00
device_memory.h device_memory: Remove unused system member 2020-07-27 23:37:49 -04:00
hardware_interrupt_manager.cpp core_timing: Make use of uintptr_t to represent user_data 2020-07-27 21:21:01 -04:00
hardware_interrupt_manager.h core_timing: Use better reference tracking for EventType. (#3159) 2019-11-26 21:48:56 -05:00
hardware_properties.h General: Add Asserts 2020-06-27 11:35:21 -04:00
memory.cpp Revert "core: Fix clang build" 2020-10-20 19:07:39 -07:00
memory.h ARM/Memory: Correct Exclusive Monitor and Implement Exclusive Memory Writes. 2020-06-27 11:35:37 -04:00
perf_stats.cpp common/fileutil: Convert namespace to Common::FS 2020-08-16 06:52:40 -04:00
perf_stats.h perf_stats: Mark GetMeanFrametime() as const 2020-08-03 12:33:35 -04:00
reporter.cpp common/fileutil: Convert namespace to Common::FS 2020-08-16 06:52:40 -04:00
reporter.h service: Update function tables 2020-04-20 15:53:49 -04:00
settings.cpp settings: Remove global vibration strength modifier 2020-11-15 23:33:20 -05:00
settings.h Merge pull request #4451 from slashiee/extended-logging 2020-11-23 13:34:15 -08:00
telemetry_session.cpp patch_manager: Remove usages of the global system instance 2020-11-18 09:36:48 -05:00
telemetry_session.h patch_manager: Remove usages of the global system instance 2020-11-18 09:36:48 -05:00