gpu: Refactor a/synchronous implementations into their own classes.
This commit is contained in:
parent
7b574f406b
commit
aaa373585c
8 changed files with 162 additions and 65 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue