From 420df52bb29cb4d74cf27247549a1d4605a6cf61 Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Thu, 24 Mar 2016 17:32:09 +0000 Subject: [PATCH] Ensure event/update/render times are logged when using the combined-update-render threading model The performance logging output is only shown when a VSYNC marker is sent, but we do not have a Vsync thread in the combined-update-render threading model. The solution is to just set a vsync marker at the start of the frame. Change-Id: Ifd1c2b91d546f4b1819a034ef918b9484501018e --- .../base/combined-update-render/combined-update-render-controller.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adaptors/base/combined-update-render/combined-update-render-controller.cpp b/adaptors/base/combined-update-render/combined-update-render-controller.cpp index 8a1b564..689129f 100644 --- a/adaptors/base/combined-update-render/combined-update-render-controller.cpp +++ b/adaptors/base/combined-update-render/combined-update-render-controller.cpp @@ -374,6 +374,9 @@ void CombinedUpdateRenderController::UpdateRenderThread() { LOG_UPDATE_RENDER_TRACE; + // Performance statistics are logged upon a VSYNC tick so use this point for a VSync marker + AddPerformanceMarker( PerformanceInterface::VSYNC ); + uint64_t currentFrameStartTime = 0; TimeService::GetNanoseconds( currentFrameStartTime ); -- 2.7.4