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

memory leak when redo update custom QQuick3DGeometry

XMLWordPrintable

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

      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.

        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
            kleinlee1 klein lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes