From a1f75f3370f28ef4023eacc852f6062149874a9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 30 Jul 2017 19:45:28 +0800 Subject: [PATCH] Analytics: Report a few more video settings * per-pixel lighting * usershader mode * fast depth * vertex rounding --- Source/Core/Core/Analytics.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Source/Core/Core/Analytics.cpp b/Source/Core/Core/Analytics.cpp index a3060833c9..372bf3ab8a 100644 --- a/Source/Core/Core/Analytics.cpp +++ b/Source/Core/Core/Analytics.cpp @@ -178,6 +178,17 @@ void DolphinAnalytics::MakeBaseBuilder() m_base_builder = builder; } +static const char* GetUbershaderMode(const VideoConfig& video_config) +{ + if (video_config.bDisableSpecializedShaders) + return "exclusive"; + + if (video_config.bBackgroundShaderCompiling) + return "hybrid"; + + return "disabled"; +} + void DolphinAnalytics::MakePerGameBuilder() { Common::AnalyticsReportBuilder builder(m_base_builder); @@ -219,6 +230,10 @@ void DolphinAnalytics::MakePerGameBuilder() builder.AddData("cfg-gfx-efb-copy-scaled", g_Config.bCopyEFBScaled); builder.AddData("cfg-gfx-tc-samples", g_Config.iSafeTextureCache_ColorSamples); builder.AddData("cfg-gfx-stereo-mode", g_Config.iStereoMode); + builder.AddData("cfg-gfx-per-pixel-lighting", g_Config.bEnablePixelLighting); + builder.AddData("cfg-gfx-ubershader-mode", GetUbershaderMode(g_Config)); + builder.AddData("cfg-gfx-fast-depth", g_Config.bFastDepthCalc); + builder.AddData("cfg-gfx-vertex-rounding", g_Config.UseVertexRounding()); // GPU features. if (g_Config.iAdapter < static_cast(g_Config.backend_info.Adapters.size()))