Minimizing assets
As on embedded and mobile devices there isn't much space for static storage, the graphic resources we use could also be a problem analogous to the executable size. As we already mentioned in Chapter 8, Optimizing Graphic Performance, GPUs support compression of texture data (that is, images). This will speed up the transfer of texture data from CPU to GPU but also the loading times when our application starts. Qt 3D includes support for compressed textures from the beginning, and starting with Qt 5.11, the QML Image element also supports the loading of compressed texture data.
Apart from that, a further optimization that can be applied is the minimization of the contained 2D images. There are some commercial tools that will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access