Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-6723

Improve memory usage for image assets

    XMLWordPrintable

Details

    • 1
    • QDS Oulu - 2022 Week 25/26, QDS Oulu - 2022 Week 31/32, QDS Oulu - 2022 Week 39/40

    Description

      When a project is opened, all image assets are fully decompressed into memory, even if:

      • The images are not used in any QML documents
      • Qt Design Studio's "Assets" view is closed

       

      This can cause extreme RAM usage in large projects. A customer reported Qt Design Studio taking up 16 GB of RAM while working on a blank *.ui.qml file, simply because their project contains many image assets.

       

      Suggestions

      • Don't load the images into memory unless a loaded QML document uses the image, or unless the "Assets" view is open.
      • For the "Assets" view thumbnails: Instead of loading the full image into memory, load a cached thumbnail image. Or, set sensible limits the Image.sourceSize property of the thumbnails.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            saghinet Samuel Ghinet
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes