summaryrefslogtreecommitdiffstats
path: root/src/engine/Qt3DSRuntimeView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Qt3DSRuntimeView.cpp')
-rw-r--r--src/engine/Qt3DSRuntimeView.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/engine/Qt3DSRuntimeView.cpp b/src/engine/Qt3DSRuntimeView.cpp
index 0a8fd54..bc48866 100644
--- a/src/engine/Qt3DSRuntimeView.cpp
+++ b/src/engine/Qt3DSRuntimeView.cpp
@@ -52,6 +52,7 @@
#include "Qt3DSDLLManager.h"
#include "foundation/Qt3DSSimpleTypes.h"
#include "foundation/TrackingAllocator.h"
+#include "foundation/Qt3DSPerfTimer.h"
// For perf log timestamp
#include <time.h>
#include "Qt3DSArray.h"
@@ -397,8 +398,16 @@ void CRuntimeView::Render()
m_Application->UpdateAndRender();
if (m_startupTime < 0 && m_startupTimer && m_startupTimer->isValid()) {
- m_startupTime = m_startupTimer->elapsed();
- m_startupTimer->invalidate();
+ {
+ QT3DS_PERF_SCOPED_TIMER(m_Application.mPtr->GetRuntimeFactoryCore()
+ .GetPerfTimer(), "RuntimeView: Stopping startup timer")
+ m_startupTime = m_startupTimer->elapsed();
+ m_startupTimer->invalidate();
+ }
+
+ // Output startup perf logging data
+ m_Application->OutputPerfLoggingData();
+
qCDebug(PERF_INFO, "RuntimeView: First frame at - %dms", m_startupTime);
}