How to optimise Qt Quick 2 applications for maximum performance

December 3, 2019

If you have ever wondered how Qt Quick applications are rendered to the screen, and how to use that knowledge to find and fix performance problems, then this talk is for you. Qt Quick 2 applications are notably easy to write. With just a few lines of QML code, we can create compelling, animated, fluid, 60FPS user interfaces. From time to time, however, we may face performance problems in our UI layer, especially in constrained hardware environments (mobile or embedded). In order to tackle these problems, we need to understand the foundations of Qt Quick 2’s rendering, and how to design our code in order to extract the maximum performances from the underlying hardware. And while it is true that premature optimization is the root of all evil, avoding premature pessimization is also extremely important, especially at early stages of design of a complex application. In this talk we will introduce the main principles behind profiling and optimizing the rendering of a Qt Quick 2 application. We will start by discussing how Qt Quick 2 renders a scene – namely, through its scene graph and via OpenGL calls. We will see how to gather information about how effectively Qt Quick is rendering a scene. Some of this information is available via “secret switches”, while other requires the usage of external tools, which is therefore necessary to master. Finally, we will discuss how to fix some of the most common performance problems: poor batching, excessive overdraws, fill rate limitation, and poor texture memory utilization. Practical experience with QML application is required, and some OpenGL knowledge is beneficial (but not necessary).

TALK: Optimizing the Rendering of Qt Quick 2 applications

SPEAKER: Giuseppe D’Angelo

COMPANY: KDAB

TRACK: Graphics & 3D

Talk recorded at the Qt World Summit 2019 event in Berlin. #QtWS19 November 2019 - BCC 

Previous Video
Modern 3D user interface design with Qt Quick
Modern 3D user interface design with Qt Quick

QtQuick in Autodesk VRED -- Pascal Seifert & Markus Keller -- Autodesk

Next Video
Turn Sketch or Photoshop UI designs into working prototypes
Turn Sketch or Photoshop UI designs into working prototypes

TALK: Qt Design Studio Bridging the Gap SPEAKER: Thomas Hartmann COMPANY: KDAB TRACK: Graphics & 3D Talk ...