Forums - How to improve the time spent with binning?

1 post / 0 new
How to improve the time spent with binning?
nils_daumann
Join Date: 15 Jun 18
Posts: 4
Posted: Sun, 2023-02-26 05:27

On a Meta Quest 2 with the Qualcomm XR2, I am trying to render a scene with about 250k vertices. Since it is rendered twice using multiview, I guess the real number is closer to 500k vertices. I use Vulkan.

The problem is that it is spending between 3.7ms and 3.9ms on binning every frame and I'd really like to reduce that time. I use indexed rendering with 16bit indices.

The vertex shader is multiplying the vertex position with the objects world transform and multiplying the result with the view projection matrix. And that's all it does. I tried reducing it to one multiplication, but without seeing a meaningful improvement.

I tried splitting off vertex positions into their own buffer, but without seeing any improvement.

I tried reducing the per vertex data size by using 16bit positions and 16bit normals, but again without any measurable improvemen in binning time (or any other times...).

So now I am wondering what the actual bottleneck might be and how I could hopefully improve it without reducing resolution (and as a result the number of tiles). Reducing MSAA or depth buffer bitrate is also not an option :(

Quote:
Surface 1    | 1440x1584 | color 32bit, depth 32bit, stencil 0 bit, MSAA 4, Mode: 1 (HwBinning) | 135 96 x176 bins ( 92  rendered) | 11.42 ms | 282 stages : Binning : 3.809ms Render : 4.026ms StoreColor : 0.765ms Preempt : 1.867ms

I'd be happy about any advice or ideas.

Thanks!

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.