diff options
| author | 2020-03-19 13:09:32 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:52 -0400 | |
| commit | f2ade343e2492c213ac93680a55e9bed712dac9a (patch) | |
| tree | 30bce0eb24a0b2b38310f07fa37c7ba881fc8535 /src/core/core_timing.h | |
| parent | GUI: Make multicore only work with Async and add GUI for multicore. (diff) | |
| download | yuzu-f2ade343e2492c213ac93680a55e9bed712dac9a.tar.gz yuzu-f2ade343e2492c213ac93680a55e9bed712dac9a.tar.xz yuzu-f2ade343e2492c213ac93680a55e9bed712dac9a.zip | |
SingleCore: Move Host Timing from a sepparate thread to main cpu thread.
Diffstat (limited to 'src/core/core_timing.h')
| -rw-r--r-- | src/core/core_timing.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index 032eb08aa..03f9a5c76 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h | |||
| @@ -67,6 +67,11 @@ public: | |||
| 67 | /// Tears down all timing related functionality. | 67 | /// Tears down all timing related functionality. |
| 68 | void Shutdown(); | 68 | void Shutdown(); |
| 69 | 69 | ||
| 70 | /// Sets if emulation is multicore or single core, must be set before Initialize | ||
| 71 | void SetMulticore(bool is_multicore) { | ||
| 72 | this->is_multicore = is_multicore; | ||
| 73 | } | ||
| 74 | |||
| 70 | /// Pauses/Unpauses the execution of the timer thread. | 75 | /// Pauses/Unpauses the execution of the timer thread. |
| 71 | void Pause(bool is_paused); | 76 | void Pause(bool is_paused); |
| 72 | 77 | ||
| @@ -147,6 +152,8 @@ private: | |||
| 147 | std::atomic<bool> has_started{}; | 152 | std::atomic<bool> has_started{}; |
| 148 | std::function<void(void)> on_thread_init{}; | 153 | std::function<void(void)> on_thread_init{}; |
| 149 | 154 | ||
| 155 | bool is_multicore{}; | ||
| 156 | |||
| 150 | std::array<std::atomic<u64>, Core::Hardware::NUM_CPU_CORES> ticks_count{}; | 157 | std::array<std::atomic<u64>, Core::Hardware::NUM_CPU_CORES> ticks_count{}; |
| 151 | }; | 158 | }; |
| 152 | 159 | ||