summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2021-09-11 23:11:32 +0200
committerGitHub <noreply@github.com>2021-09-11 23:11:32 +0200
commitbe4e1929033aff005472163164ab0ccc80d81c19 (patch)
treeb3b3f62a3b3e8e3c329ee35411d8d18e20a835ab /src/core
parentMerge pull request #6901 from ameerj/vk-clear-bits (diff)
parenth264: Lower max_num_ref_frames (diff)
downloadyuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar
yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.gz
yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.bz2
yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.lz
yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.xz
yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.zst
yuzu-be4e1929033aff005472163164ab0ccc80d81c19.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/telemetry_session.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp
index 5a8cfd301..1f1607998 100644
--- a/src/core/telemetry_session.cpp
+++ b/src/core/telemetry_session.cpp
@@ -72,6 +72,18 @@ static const char* TranslateGPUAccuracyLevel(Settings::GPUAccuracy backend) {
return "Unknown";
}
+static const char* TranslateNvdecEmulation(Settings::NvdecEmulation backend) {
+ switch (backend) {
+ case Settings::NvdecEmulation::Off:
+ return "Off";
+ case Settings::NvdecEmulation::CPU:
+ return "CPU";
+ case Settings::NvdecEmulation::GPU:
+ return "GPU";
+ }
+ return "Unknown";
+}
+
u64 GetTelemetryId() {
u64 telemetry_id{};
const auto filename = Common::FS::GetYuzuPath(Common::FS::YuzuPath::ConfigDir) / "telemetry_id";
@@ -229,8 +241,8 @@ void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader,
TranslateGPUAccuracyLevel(Settings::values.gpu_accuracy.GetValue()));
AddField(field_type, "Renderer_UseAsynchronousGpuEmulation",
Settings::values.use_asynchronous_gpu_emulation.GetValue());
- AddField(field_type, "Renderer_UseNvdecEmulation",
- Settings::values.use_nvdec_emulation.GetValue());
+ AddField(field_type, "Renderer_NvdecEmulation",
+ TranslateNvdecEmulation(Settings::values.nvdec_emulation.GetValue()));
AddField(field_type, "Renderer_AccelerateASTC", Settings::values.accelerate_astc.GetValue());
AddField(field_type, "Renderer_UseVsync", Settings::values.use_vsync.GetValue());
AddField(field_type, "Renderer_ShaderBackend",