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

Optimize memory usage of QQuickSpriteSequence

    XMLWordPrintable

Details

    Description

      Right now, SpriteSequence does not check for duplication. It copies whatever needed into its own texture, even if the Sprite is referencing another existing one, or has the same source.

      What original reporter suggests, quoted:
      For instance, I think QQuickSpriteMaterial can use std::shared_ptr<QSGTexture> instead of raw pointer to QSGTexture and manual deletion on destruction. Then, you can manage a kind of global hash table of std::weak_ptr<QSGTexture> whose key is QList<QQuickSprite*>(and with combination of QSGContext* or QQuickWindow* or whatever can isolate graphics resource allocation).

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes