Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.9
-
None
-
-
74487c313 (dev)
Description
We are debugging where is biggest memory consumers in Qt6 Qml applications. One of the contributor is imageformat plugins, which are all loaded during startup application startup. Even when they are not used at all.
I used hellocube as an example. It uses png image in rotating cube. And on eglfs platform all qml applications has png image as a cursor (cursor-atlas.png)
I found out that attached patch will help. It will also describe the problem with png images:
- Image format plugin is tried to load. First it checks that is there any plugins that have it supported in metadata -> No plugin found
- Second it loads and checks capabilities for all plugins. This is the problematic step. -> No plugin found
- Thirdly it loads png "plugin" which is internal/compiled into QtGui
Patch reverses steps two and three. Other option would be to convert png plugin into official imageformat plugin.
Image formats team, please check this. Memory consumption will grow bigger and bigger, more image formats we will have. This will have impact also into application startup time.
Attachments
For Gerrit Dashboard: QTBUG-129330 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
596615,7 | Avoid loading image format plugins until needed | dev | qt/qtbase | Status: MERGED | +2 | 0 |