Ensure event/update/render times are logged when using the combined-update-render... 97/63597/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 24 Mar 2016 17:32:09 +0000 (17:32 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 24 Mar 2016 17:33:50 +0000 (17:33 +0000)
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

adaptors/base/combined-update-render/combined-update-render-controller.cpp

index 8a1b564..689129f 100644 (file)
@@ -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 );