Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. GPU Memory leaks when redo update custom QQuick3DGeometry
Forum Updated to NodeBB v4.3 + New Features

GPU Memory leaks when redo update custom QQuick3DGeometry

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 476 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kleinlee
    wrote on last edited by
    #1

    Re: QtQuick3D:How to customize geometry data and update it in real time?

    QT6.2.1, I call Quick3DGeometry::clear() before update data, but it can't clear all the previous buffer. Repeat several times and the GPU usage becomes higher and higher when refresh the screen.
    see the code in official example: Qt Quick 3D - Custom Geometry Example

    47b9fe2b-c427-42e8-aa5a-e5c2f42c56b6-1642720103(1).png
    6317f93a-c0d0-4707-954e-0ecb4e6d9319-1642720172(1).png

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kleinlee
      wrote on last edited by
      #2

      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.
      25468321-f2e7-440f-a2cd-7031e7101175-1643018962(1).png

      jsulmJ 1 Reply Last reply
      0
      • K kleinlee

        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.
        25468321-f2e7-440f-a2cd-7031e7101175-1643018962(1).png

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @kleinlee said in GPU Memory leaks when redo update custom QQuick3DGeometry:

        I hope the official will fix this bug as soon as possible

        Did you report it on Qt Bug Tracker?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        K 1 Reply Last reply
        0
        • jsulmJ jsulm

          @kleinlee said in GPU Memory leaks when redo update custom QQuick3DGeometry:

          I hope the official will fix this bug as soon as possible

          Did you report it on Qt Bug Tracker?

          K Offline
          K Offline
          kleinlee
          wrote on last edited by
          #4

          @jsulm I reported it just now. https://bugreports.qt.io/browse/QTBUG-100159

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved