summaryrefslogtreecommitdiffstats
path: root/commonplatform.pri
diff options
context:
space:
mode:
authorKaj Grönholm <kaj.gronholm@qt.io>2019-12-03 12:47:12 +0200
committerKaj Grönholm <kaj.gronholm@qt.io>2019-12-03 16:08:46 +0200
commit202a62808527d5f29be777bb660b5111763236b8 (patch)
tree2565465bacc64a760094af8086491d1b1ce6da0a /commonplatform.pri
parenta1793ca686a50ee2a75938fea512c2eaf4445e99 (diff)
Improve perf logging & timers
OpenGL runtime contains perf timers but they are not documented so probably not much used. Switch to using QT3DS_PERF_SCOPED_TIMER macro instead of direct SStackPerfTimer usage. Then SStackPerfTimer debugs overhead can be fully removed when QT3DS_ENABLE_PERF_LOGGING is not defined (default). Print first frame render time when qt3ds.perf_info is on. Task-number: QT3DS-4021 Change-Id: Id11a1c5bb8bf24f545e9bceb333212f345b29bb7 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'commonplatform.pri')
-rw-r--r--commonplatform.pri5
1 files changed, 5 insertions, 0 deletions
diff --git a/commonplatform.pri b/commonplatform.pri
index bf6b39a..732d874 100644
--- a/commonplatform.pri
+++ b/commonplatform.pri
@@ -18,6 +18,11 @@ DEFINES += \
_UNICODE \
NO_BOOST
+# Enable this to build runtime with perf logging on.
+# At runtime to see logs, you should also enable "qt3ds.perf_info"
+# category e.g. with "QT_LOGGING_RULES=qt3ds.perf_info=true"
+#DEFINES += QT3DS_ENABLE_PERF_LOGGING
+
win32: PlatformSpecificDir = windows
macos: PlatformSpecificDir = macos
linux|integrity|qnx: PlatformSpecificDir = linux