summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-09 05:21:53 +0100
committerbunnei <bunneidev@gmail.com>2019-03-07 03:48:57 +0100
commitaaa373585cd55bd03fcc589d2ad9f749e2cb99d4 (patch)
tree1da617fd05d84d59910d585a6b01af2c89f3ed36 /src/core
parentgpu: Move command processing to another thread. (diff)
downloadyuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar.gz
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar.bz2
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar.lz
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar.xz
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar.zst
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 9e5d167c3..1d83e9e11 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -36,7 +36,8 @@
#include "frontend/applets/software_keyboard.h"
#include "frontend/applets/web_browser.h"
#include "video_core/debug_utils/debug_utils.h"
-#include "video_core/gpu.h"
+#include "video_core/gpu_asynch.h"
+#include "video_core/gpu_synch.h"
#include "video_core/renderer_base.h"
#include "video_core/video_core.h"
@@ -131,7 +132,11 @@ struct System::Impl {
is_powered_on = true;
- gpu_core = std::make_unique<Tegra::GPU>(system, *renderer);
+ if (Settings::values.use_asynchronous_gpu_emulation) {
+ gpu_core = std::make_unique<VideoCommon::GPUAsynch>(system, *renderer);
+ } else {
+ gpu_core = std::make_unique<VideoCommon::GPUSynch>(system, *renderer);
+ }
cpu_core_manager.Initialize(system);