QtQuick3D QML Profiler Events
April 08, 2022 by Janne Koskinen | Comments
In Qt 6.3 we have added QML Profiler events in QtQuick3D. Starting with Qt Creator 7.0 you can see the events in QML Profiler timeline.
Example: Outrun - automotive demo
Trying to find out what is wrong without profiling tools takes a lot of unnecessary guessing and sprinkling of debug prints. QML profiler can easily show where the time goes.
A 3D scene implemented with QtQuick3D running on Google Pixel C Android tablet.
With the new QtQuick3D Profiler events we can see a suspiciously long texture load taking up 208ms, a 1/4 of the loading of the scene. In total all texture loading takes almost 1/2 of the scene time, 1/3 goes to shader generation and 1/4 to mesh loading.
Sorting the project files in size order we find long texture load to be the background cube map texture weighing 78MB. Additionally, all textures are in PNG format instead of compressed texture format such as ASTC.
Reducing the resolution of the cube map from 4k to 1080p reduces the file size to 18MB and load time to 61ms. With the smaller resolution cube map and changing the PNG images to high quality ASTC compressed textures nearly halves the frame preparation time. The next step is to find the right balance in fidelity and usability.
For all the events added look at the documentation https://doc.qt.io/qtcreator/creator-qml-performance-monitor.html#analyzing-qt-quick-3d-events .
Subscribe to our newsletter
Try Qt 6.5 Now!
Download the latest release here: www.qt.io/download.
Qt 6.5 is the latest Long-Term-Support release with all you need for C++ cross-platform app development.
Explore Qt World
Check our Qt demos and case studies in the virtual Qt World
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Näytä tämä julkaisu Instagramissa.
Want to build something for tomorrow, join #QtPeople today! We have loads of cool jobs you don't want to miss! http://qt.io/careers #builtwithQt #software #developers #coding #framework #tool #tooling #C++ #QML #engineers #sales #tech #technology #UI #UX #CX #Qt #Qtdev #global #openpositions #careers #job
Henkilön Qt (@theqtcompany) jakama julkaisu