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/core | |
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/core')
-rw-r--r-- | src/core/settings.h | 9 | ||||
-rw-r--r-- | src/core/telemetry_session.cpp | 12 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/core/settings.h b/src/core/settings.h index 421e76f5f..e1a9a0ffa 100644 --- a/src/core/settings.h +++ b/src/core/settings.h @@ -371,6 +371,11 @@ enum class SDMCSize : u64 { S1TB = 0x10000000000ULL, }; +enum class RendererBackend { + OpenGL = 0, + Vulkan = 1, +}; + struct Values { // System bool use_docked_mode; @@ -419,6 +424,10 @@ struct Values { SDMCSize sdmc_size; // Renderer + RendererBackend renderer_backend; + bool renderer_debug; + int vulkan_device; + float resolution_factor; bool use_frame_limit; u16 frame_limit; diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index 320e8ad73..0e72d31cd 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp @@ -46,6 +46,16 @@ static u64 GenerateTelemetryId() { return telemetry_id; } +static const char* TranslateRenderer(Settings::RendererBackend backend) { + switch (backend) { + case Settings::RendererBackend::OpenGL: + return "OpenGL"; + case Settings::RendererBackend::Vulkan: + return "Vulkan"; + } + return "Unknown"; +} + u64 GetTelemetryId() { u64 telemetry_id{}; const std::string filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) + @@ -169,7 +179,7 @@ void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader) { AddField(field_type, "Audio_SinkId", Settings::values.sink_id); AddField(field_type, "Audio_EnableAudioStretching", Settings::values.enable_audio_stretching); AddField(field_type, "Core_UseMultiCore", Settings::values.use_multi_core); - AddField(field_type, "Renderer_Backend", "OpenGL"); + AddField(field_type, "Renderer_Backend", TranslateRenderer(Settings::values.renderer_backend)); AddField(field_type, "Renderer_ResolutionFactor", Settings::values.resolution_factor); AddField(field_type, "Renderer_UseFrameLimit", Settings::values.use_frame_limit); AddField(field_type, "Renderer_FrameLimit", Settings::values.frame_limit); |