Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129650

Ability to opt-out of having threaded QImage loading

    XMLWordPrintable

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?

    • Android, Integrity, iOS/tvOS/watchOS, Linux/Wayland, Linux/X11, Linux/Yocto, macOS, QNX, VxWorks, Windows, webOS
    • 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

        For Gerrit Dashboard: QTBUG-129650
        # Subject Branch Project Status CR V

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            papetaja Pasi Petäjäjärvi
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change