diff options
author | Mike Krus <mike.krus@kdab.com> | 2019-12-12 15:30:22 +0000 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2020-01-17 07:12:06 +0000 |
commit | 34165446cd03a659eaea83d25dfdb91a22c0e2c5 (patch) | |
tree | ecb6483651e0dc2fb4ff5d6a83aa54ceaf7186f3 /examples/qt3d/simple-qml/main.qml | |
parent | 34cb77c210316dd254a8aa27052fb03223e3f7af (diff) |
Add Profiling Overlay
Can be activated at adding a QDebugOverlay in the frame graph to
identify which surface it should be renderer one (renders only
once on first branch that contains such a node).
Can be also activated on the forward renderer from Qt3DExtras.
- Shows information about FPS and number of
jobs/renderviews/commands/vertices/entities/geometries/textures...
- Allows to toggle job and gl call tracing and open folder where
trace files are stored
- Windows to show and dump glinfo and renderview/command details to the
console
Change-Id: I286ff85760e8f8f0604a23458883ff22229bda94
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/simple-qml/main.qml')
-rw-r--r-- | examples/qt3d/simple-qml/main.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/qt3d/simple-qml/main.qml b/examples/qt3d/simple-qml/main.qml index 5eed965ca..9f4149202 100644 --- a/examples/qt3d/simple-qml/main.qml +++ b/examples/qt3d/simple-qml/main.qml @@ -52,7 +52,7 @@ import QtQuick 2.2 as QQ2 import Qt3D.Core 2.0 import Qt3D.Render 2.0 import Qt3D.Input 2.0 -import Qt3D.Extras 2.0 +import Qt3D.Extras 2.15 Entity { id: sceneRoot @@ -78,6 +78,7 @@ Entity { activeFrameGraph: ForwardRenderer { clearColor: Qt.rgba(0, 0.5, 1, 1) camera: camera + showDebugOverlay: true } }, // Event Source will be set by the Qt3DQuickWindow |