summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorGravatar lat9nq2021-10-08 20:47:14 -0400
committerGravatar Fernando Sahmkow2021-11-16 22:11:30 +0100
commit1c93476a803f8cb93de341a43a013d5cc302b05b (patch)
tree45fd07e541fedf180851279dac9a01a9e97cf1a9 /src/video_core
parentgl_texture_cache: Disable scissor test when scaling textures (diff)
downloadyuzu-1c93476a803f8cb93de341a43a013d5cc302b05b.tar.gz
yuzu-1c93476a803f8cb93de341a43a013d5cc302b05b.tar.xz
yuzu-1c93476a803f8cb93de341a43a013d5cc302b05b.zip
video_core,yuzu: Move UpdateRescalingInfo call to video_core
This only needs to happen once per game boot, so we can just call it during CreateGPU and be done with it, avoiding the need to call it in the frontends.
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/video_core.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp
index 508173db3..e852c817e 100644
--- a/src/video_core/video_core.cpp
+++ b/src/video_core/video_core.cpp
@@ -37,6 +37,8 @@ std::unique_ptr<VideoCore::RendererBase> CreateRenderer(
37namespace VideoCore { 37namespace VideoCore {
38 38
39std::unique_ptr<Tegra::GPU> CreateGPU(Core::Frontend::EmuWindow& emu_window, Core::System& system) { 39std::unique_ptr<Tegra::GPU> CreateGPU(Core::Frontend::EmuWindow& emu_window, Core::System& system) {
40 Settings::UpdateRescalingInfo();
41
40 const auto nvdec_value = Settings::values.nvdec_emulation.GetValue(); 42 const auto nvdec_value = Settings::values.nvdec_emulation.GetValue();
41 const bool use_nvdec = nvdec_value != Settings::NvdecEmulation::Off; 43 const bool use_nvdec = nvdec_value != Settings::NvdecEmulation::Off;
42 const bool use_async = Settings::values.use_asynchronous_gpu_emulation.GetValue(); 44 const bool use_async = Settings::values.use_asynchronous_gpu_emulation.GetValue();