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

Investigate if number of allocations performed while filling up a QRhiResourceUpdateBatch could be reduced

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.0
    • None
    • Qt RHI
    • None

      https://codereview.qt-project.org/c/qt/qtbase/+/275432 shows an approach to remove the individual QByteArray data; members from individual DynamicBufferUpdate items inside a resource update batch. Rather, a single, batch-level QByteArray is used there, with the individual update descriptions only storing on offset inside the "pool".

      This still allocates/resizes of course, but the there is fewer allocations overall.

      Or figure out something else.

      It could be that the improvements may (also) come from changes on the client side (i.e. the Qt Quick renderer) instead of or in addition to the QRhi API.

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

            lagocs Laszlo Agocs
            lagocs Laszlo Agocs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes