diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-04-30 21:39:00 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-05-03 03:51:29 +0200 |
commit | 6f0929df82be77f116988cf16cde4ebbc5f978dc (patch) | |
tree | b12668b13bce18dc9b628cf77b2d935ca0ab4f71 /src/core | |
parent | Merge pull request #9973 from GPUCode/async-present (diff) | |
download | yuzu-6f0929df82be77f116988cf16cde4ebbc5f978dc.tar yuzu-6f0929df82be77f116988cf16cde4ebbc5f978dc.tar.gz yuzu-6f0929df82be77f116988cf16cde4ebbc5f978dc.tar.bz2 yuzu-6f0929df82be77f116988cf16cde4ebbc5f978dc.tar.lz yuzu-6f0929df82be77f116988cf16cde4ebbc5f978dc.tar.xz yuzu-6f0929df82be77f116988cf16cde4ebbc5f978dc.tar.zst yuzu-6f0929df82be77f116988cf16cde4ebbc5f978dc.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/telemetry_session.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index 9178b00ca..6ec8e440c 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp @@ -85,6 +85,18 @@ static const char* TranslateNvdecEmulation(Settings::NvdecEmulation backend) { return "Unknown"; } +constexpr const char* TranslateVSyncMode(Settings::VSyncMode mode) { + switch (mode) { + case Settings::VSyncMode::Immediate: + return "Immediate"; + case Settings::VSyncMode::FIFO: + return "FIFO"; + case Settings::VSyncMode::Mailbox: + return "Mailbox"; + } + return "Unknown"; +} + u64 GetTelemetryId() { u64 telemetry_id{}; const auto filename = Common::FS::GetYuzuPath(Common::FS::YuzuPath::ConfigDir) / "telemetry_id"; @@ -241,7 +253,8 @@ void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader, 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_UseVsync", + TranslateVSyncMode(Settings::values.vsync_mode.GetValue())); AddField(field_type, "Renderer_ShaderBackend", static_cast<u32>(Settings::values.shader_backend.GetValue())); AddField(field_type, "Renderer_UseAsynchronousShaders", |