summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-07-10 06:00:02 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-07-17 06:26:14 +0200
commit85d7a8f466837859a372fdc2a93028061e1b0bb8 (patch)
tree1f924fffcd6f8a44eb54c6e4a8bc94b7773c88eb /src/core
parentasync shaders (diff)
downloadyuzu-85d7a8f466837859a372fdc2a93028061e1b0bb8.tar
yuzu-85d7a8f466837859a372fdc2a93028061e1b0bb8.tar.gz
yuzu-85d7a8f466837859a372fdc2a93028061e1b0bb8.tar.bz2
yuzu-85d7a8f466837859a372fdc2a93028061e1b0bb8.tar.lz
yuzu-85d7a8f466837859a372fdc2a93028061e1b0bb8.tar.xz
yuzu-85d7a8f466837859a372fdc2a93028061e1b0bb8.tar.zst
yuzu-85d7a8f466837859a372fdc2a93028061e1b0bb8.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/settings.cpp3
-rw-r--r--src/core/settings.h1
-rw-r--r--src/core/telemetry_session.cpp2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/core/settings.cpp b/src/core/settings.cpp
index e8a6f2a6e..764df0db3 100644
--- a/src/core/settings.cpp
+++ b/src/core/settings.cpp
@@ -115,6 +115,8 @@ void LogSettings() {
values.use_asynchronous_gpu_emulation.GetValue());
log_setting("Renderer_UseVsync", values.use_vsync.GetValue());
log_setting("Renderer_UseAssemblyShaders", values.use_assembly_shaders.GetValue());
+ log_setting("Renderer_UseAsynchronousShaders",
+ Settings::values.use_asynchronous_shaders.GetValue());
log_setting("Renderer_AnisotropicFilteringLevel", values.max_anisotropy.GetValue());
log_setting("Audio_OutputEngine", values.sink_id);
log_setting("Audio_EnableAudioStretching", values.enable_audio_stretching.GetValue());
@@ -170,6 +172,7 @@ void RestoreGlobalState() {
values.use_asynchronous_gpu_emulation.SetGlobal(true);
values.use_vsync.SetGlobal(true);
values.use_assembly_shaders.SetGlobal(true);
+ values.use_asynchronous_shaders.SetGlobal(true);
values.use_fast_gpu_time.SetGlobal(true);
values.force_30fps_mode.SetGlobal(true);
values.bg_red.SetGlobal(true);
diff --git a/src/core/settings.h b/src/core/settings.h
index a64debd25..386233fdf 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -434,6 +434,7 @@ struct Values {
Setting<bool> use_asynchronous_gpu_emulation;
Setting<bool> use_vsync;
Setting<bool> use_assembly_shaders;
+ Setting<bool> use_asynchronous_shaders;
Setting<bool> force_30fps_mode;
Setting<bool> use_fast_gpu_time;
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp
index 78915e6db..5a30c75da 100644
--- a/src/core/telemetry_session.cpp
+++ b/src/core/telemetry_session.cpp
@@ -207,6 +207,8 @@ void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader) {
AddField(field_type, "Renderer_UseVsync", Settings::values.use_vsync.GetValue());
AddField(field_type, "Renderer_UseAssemblyShaders",
Settings::values.use_assembly_shaders.GetValue());
+ AddField(field_type, "Renderer_UseAsynchronousShaders",
+ Settings::values.use_asynchronous_shaders.GetValue());
AddField(field_type, "System_UseDockedMode", Settings::values.use_docked_mode);
}