summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2018-10-28 00:43:12 +0200
committerGitHub <noreply@github.com>2018-10-28 00:43:12 +0200
commit756a2fe14d87e47df8d08202117f7a84148eb235 (patch)
tree7eed93ec65d8cb9aedea609105cf5f15b96b499e /Source/Core/VideoCommon/RenderBase.cpp
parentdd922660c9fdc466c707049888a24dfea0fb4c8c (diff)
parent83c3370c2a408b58f5ed1fe382f91ecddb812325 (diff)
Merge pull request #7517 from delroth/analytics-perf
Report performance information through our analytics subsystem
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp
index 5aa6989615..70025ec720 100644
--- a/Source/Core/VideoCommon/RenderBase.cpp
+++ b/Source/Core/VideoCommon/RenderBase.cpp
@@ -34,10 +34,12 @@
#include "Common/Thread.h"
#include "Common/Timer.h"
+#include "Core/Analytics.h"
#include "Core/Config/SYSCONFSettings.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/FifoPlayer/FifoRecorder.h"
+#include "Core/HW/SystemTimers.h"
#include "Core/HW/VideoInterface.h"
#include "Core/Host.h"
#include "Core/Movie.h"
@@ -698,6 +700,12 @@ void Renderer::Swap(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, const
m_fps_counter.Update();
+ DolphinAnalytics::PerformanceSample perf_sample;
+ perf_sample.speed_ratio = SystemTimers::GetEstimatedEmulationPerformance();
+ perf_sample.num_prims = stats.thisFrame.numPrims + stats.thisFrame.numDLPrims;
+ perf_sample.num_draw_calls = stats.thisFrame.numDrawCalls;
+ DolphinAnalytics::Instance()->ReportPerformanceInfo(std::move(perf_sample));
+
if (IsFrameDumping())
DumpCurrentFrame();