Details
-
Task
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.5.6, 6.7.3, 6.8.0 RC
-
None
-
Could this just be statically chosen by a Qt feature?
-
-
7a8cefd6f (dev), 5642b6fe7 (6.8)
Description
Since https://codereview.qt-project.org/c/qt/qtbase/+/282779 added feature to draw images with multiple threads has the memory usage (esp. in embedded) increased due to the fact that thread stack usage (allocated/reserved) can be high (default thread stack size on linux is 8MB) and basically increases permanently application memory usage even after it does not load any image (that size is bigger than the defined threshold for doing threaded fills).
On embedded hw where available memory is limited this is bigger problem than the (very insignificant or actually negative) implied performance improvement of using threaded fills.
So having way to disable completely the threaded fills and/or having way to set the level when it's triggered is important so users can control what they prefer more. Less memory consumed of (possible) improvement or loading lot's of large images.
All measurement in the attach file are done with Rpi4 using Qt 6.8.0-RC with patch to disable threading via env variable.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-129650 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
604554,4 | Make multi-threaded image transforms and painter fills configurable | dev | qt/qtbase | Status: NEW | 0 | 0 |
604836,3 | Facilitate disabling multi-threading in image manipulation and painting | dev | qt/qtbase | Status: MERGED | +2 | 0 |
604992,2 | Facilitate disabling multi-threading in image manipulation and painting | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |