HZB and how does it affect performance?

Hello all,
I have recently started learning to use the GPU profiler and needed some help. I was checking for performance when I noticed that something called HZB setup Mip maps was taking a sizable chunk of the frame (~1.2 ms). I would like to know what does Hierarchical Z-Buffer do and how does it affect performance. Lastly, how can I reduce this properly?


HZB setup Mips in GPU profiler relates to creation of several lower resolution version of the depth buffer. It has multiple uses, such as SSAO, SSR, occlusion culling. Do note, however, that sometimes the timing for this stat in GPU profiler is inflated and does not show real values.

Hey Deathrey
Thank you for the swift response!