diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-21 20:37:41 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-29 21:53:11 +0100 |
commit | 788d57d723ba7e857b4872d12b698ed5cef45fd7 (patch) | |
tree | 1a2cf5a410e6688d62e3ff3fdf07b5749bd07663 /src/yuzu_cmd | |
parent | core: Only wait for idle on gpu_core when it was initialized (diff) | |
download | yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar.gz yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar.bz2 yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar.lz yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar.xz yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar.zst yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.zip |
Diffstat (limited to 'src/yuzu_cmd')
-rw-r--r-- | src/yuzu_cmd/config.cpp | 6 | ||||
-rw-r--r-- | src/yuzu_cmd/default_ini.h | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 161583b54..b01a36023 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp @@ -371,6 +371,12 @@ void Config::ReadValues() { Settings::values.use_multi_core = sdl2_config->GetBoolean("Core", "use_multi_core", false); // Renderer + const int renderer_backend = sdl2_config->GetInteger( + "Renderer", "backend", static_cast<int>(Settings::RendererBackend::OpenGL)); + Settings::values.renderer_backend = static_cast<Settings::RendererBackend>(renderer_backend); + Settings::values.renderer_debug = sdl2_config->GetBoolean("Renderer", "debug", false); + Settings::values.vulkan_device = sdl2_config->GetInteger("Renderer", "vulkan_device", 0); + Settings::values.resolution_factor = static_cast<float>(sdl2_config->GetReal("Renderer", "resolution_factor", 1.0)); Settings::values.use_frame_limit = sdl2_config->GetBoolean("Renderer", "use_frame_limit", true); diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h index e829f8695..00fd88279 100644 --- a/src/yuzu_cmd/default_ini.h +++ b/src/yuzu_cmd/default_ini.h @@ -98,6 +98,17 @@ udp_pad_index= use_multi_core= [Renderer] +# Which backend API to use. +# 0 (default): OpenGL, 1: Vulkan +backend = + +# Enable graphics API debugging mode. +# 0 (default): Disabled, 1: Enabled +debug = + +# Which Vulkan physical device to use (defaults to 0) +vulkan_device = + # Whether to use software or hardware rendering. # 0: Software, 1 (default): Hardware use_hw_renderer = |