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

memory leak when redo update custom QQuick3DGeometry

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 6.2.3, 6.3
    • 6.2.2
    • Quick: 3D
    • None
    • All

    Description

      Once QQuick3DGeometry::update() is called, it will create a new QSSGRenderMesh, and previous memory and buffer can't be released in time.

      In the official example:Qt Quick 3D - Custom Geometry Example,operate like following several times and you will see that memory and GPU usage get higher and higher.

      I read source code and make some change that QQuick3DGeometry::update() can work in a safe way with Immutable vertice and face amount. Notice: If your custom QQuick3DGeometry need to update with Changeable verts and faces or several submesh in one model, it doesn't work. I hope the official will fix this bug as soon as possible.

      Attachments

        Issue Links

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              kleinlee1 klein lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: