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

Qt/3D - vertex and index buffers thrash the bound buffer state

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Some future release
    • 4.7.0
    • Qt3D
    • None
    • a2930e7e305fde4b4e7c42fcb17d725204e6f299, fa0db82b1b710d180159827f93bd384fa7e91c5e

    Description

      QGLPainter::setVertexBuffer() does this over and over:

      buffer->bind();
      setVertexAttribute(...);
      buffer->unbind();

      If the same buffer is used for the next paint, then this will constantly flip from the id to 0 to the id to 0, etc. Same with index buffers.

      QGLPainter should keep track of this internally and only glBindBuffer() when a real buffer switch occurs, or raw client-side arrays are used for a drawing request.

      Attachments

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

        Activity

          People

            rweather Rhys Weatherley (closed Nokia identity) (Inactive)
            rweather Rhys Weatherley (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes