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. QQuickItem breaks batching
Forum Updated to NodeBB v4.3 + New Features

QQuickItem breaks batching

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 838 Views 1 Watching
  • 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.
  • Z Offline
    Z Offline
    zepfan
    wrote on last edited by
    #1

    Hi,

    I'm working on a project at work and I've recently begun using the QSG_VISUALIZE environment variables to see how well our batching numbers are. Unfortunately the number of batches was very high for one of the pages. We have a QQuickItem on that page, along with other qml items, and when I comment out the updatePaintNode() method the batching number goes way down from around 200 to 10!

    We have quite a few child nodes that get appended to the main node in the updatePaintNode() method. Is there anything we can do or is this just the nature of QQuickItem?

    Thanks,

    1 Reply Last reply
    0
    • jiancaiyangJ Offline
      jiancaiyangJ Offline
      jiancaiyang
      wrote on last edited by
      #2

      The aim of improving rendering efficiency is to reduce batching count. However for example if you overlay one item upon the other, it breaks batching, resulting in increasing batching count. So in 2D rendering it is advised to prevent overlay.

      我们自己的论坛:http://qtdream.com
      擅长三维角色仿真动画。

      Z 1 Reply Last reply
      0
      • jiancaiyangJ jiancaiyang

        The aim of improving rendering efficiency is to reduce batching count. However for example if you overlay one item upon the other, it breaks batching, resulting in increasing batching count. So in 2D rendering it is advised to prevent overlay.

        Z Offline
        Z Offline
        zepfan
        wrote on last edited by
        #3

        Thanks for the reply. Is there a way I can set the background of the QQuickItem to a fully opaque colour? I'd like to try it to see if it helps at all. I tried wrapping it inside an opaque Rectangle but that didn't work.
        At the moment the QQuickItem itself basically draws a grid on top of the parent item, but it doesn't fill its own background in.

        1 Reply Last reply
        0

        • Login

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