summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-10-19 20:47:18 +0200
committerbunnei <bunneidev@gmail.com>2019-10-19 20:47:18 +0200
commita86a88109a6df354d4a48ca79cd2ca0b10376982 (patch)
treec1e8019a5c7b8be93d3e463c5dfe4bc6466c62c6 /src/core
parentMerge pull request #2998 from cociorbaandrei/fix_null_pderef (diff)
downloadyuzu-a86a88109a6df354d4a48ca79cd2ca0b10376982.tar
yuzu-a86a88109a6df354d4a48ca79cd2ca0b10376982.tar.gz
yuzu-a86a88109a6df354d4a48ca79cd2ca0b10376982.tar.bz2
yuzu-a86a88109a6df354d4a48ca79cd2ca0b10376982.tar.lz
yuzu-a86a88109a6df354d4a48ca79cd2ca0b10376982.tar.xz
yuzu-a86a88109a6df354d4a48ca79cd2ca0b10376982.tar.zst
yuzu-a86a88109a6df354d4a48ca79cd2ca0b10376982.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 9612e4bca..b7b9259ec 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -242,15 +242,16 @@ struct System::Impl {
void Shutdown() {
// Log last frame performance stats if game was loded
if (perf_stats) {
- const auto perf_results = GetAndResetPerfStats();
- telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_EmulationSpeed",
- perf_results.emulation_speed * 100.0);
- telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_Framerate",
- perf_results.game_fps);
- telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_Frametime",
- perf_results.frametime * 1000.0);
- telemetry_session->AddField(Telemetry::FieldType::Performance, "Mean_Frametime_MS",
- perf_stats->GetMeanFrametime());
+ const auto perf_results = GetAndResetPerfStats();
+ telemetry_session->AddField(Telemetry::FieldType::Performance,
+ "Shutdown_EmulationSpeed",
+ perf_results.emulation_speed * 100.0);
+ telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_Framerate",
+ perf_results.game_fps);
+ telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_Frametime",
+ perf_results.frametime * 1000.0);
+ telemetry_session->AddField(Telemetry::FieldType::Performance, "Mean_Frametime_MS",
+ perf_stats->GetMeanFrametime());
}
lm_manager.Flush();