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

Optimize memory usage of QQuickSpriteSequence

XMLWordPrintable

      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).

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

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

              Created:
              Updated:

                There are no open Gerrit changes