diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-03-16 02:34:22 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 17:35:52 +0200 |
commit | 5d3a2be04f265c2d6a8687431593029f7329060f (patch) | |
tree | fa4475df8c0d09aa9e3fe92c6e9ed8dcb5bc267f /src/core/core.cpp | |
parent | ARM: Addapt to new Exclusive Monitor Interface. (diff) | |
download | yuzu-5d3a2be04f265c2d6a8687431593029f7329060f.tar yuzu-5d3a2be04f265c2d6a8687431593029f7329060f.tar.gz yuzu-5d3a2be04f265c2d6a8687431593029f7329060f.tar.bz2 yuzu-5d3a2be04f265c2d6a8687431593029f7329060f.tar.lz yuzu-5d3a2be04f265c2d6a8687431593029f7329060f.tar.xz yuzu-5d3a2be04f265c2d6a8687431593029f7329060f.tar.zst yuzu-5d3a2be04f265c2d6a8687431593029f7329060f.zip |
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 032da7aa5..0f0eb885a 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -152,8 +152,12 @@ struct System::Impl { device_memory = std::make_unique<Core::DeviceMemory>(system); - kernel.SetMulticore(Settings::values.use_multi_core); - cpu_manager.SetMulticore(Settings::values.use_multi_core); + is_multicore = Settings::values.use_multi_core; + is_async_gpu = is_multicore || Settings::values.use_asynchronous_gpu_emulation; + + kernel.SetMulticore(is_multicore); + cpu_manager.SetMulticore(is_multicore); + cpu_manager.SetAsyncGpu(is_async_gpu); core_timing.Initialize([&system]() { system.RegisterHostThread(); }); kernel.Initialize(); @@ -395,6 +399,9 @@ struct System::Impl { std::unique_ptr<Core::PerfStats> perf_stats; Core::FrameLimiter frame_limiter; + bool is_multicore{}; + bool is_async_gpu{}; + std::array<u64, Core::Hardware::NUM_CPU_CORES> dynarmic_ticks{}; }; |