# How to kill HZB ?

**URL:** <https://forums.unrealengine.com/t/how-to-kill-hzb/299227>\
**Category:** Rendering\
**Tags:** occlusion, unreal-engine, UE4, question, draw-calls\
**Created:** [November 18, 2014, 12:11am UTC](https://forums.unrealengine.com/t/how-to-kill-hzb/299227 "2014-11-18T00:11:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmrVR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AmrVR](https://forums.unrealengine.com/u/AmrVR)\
**Post date:** [November 18, 2014, 12:11am UTC](https://forums.unrealengine.com/t/how-to-kill-hzb/299227/1 "2014-11-18T00:11:14Z")

</div>

Hi All,

is there a way that I can kill the HZB Occlusion ?

Thank you

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [November 18, 2014, 4:00pm UTC](https://forums.unrealengine.com/t/how-to-kill-hzb/299227/2 "2014-11-18T16:00:27Z")

</div>

Hey AmrVR -

In the consolevariables.ini file add the following line:

```
r.HZBOcclusion=0

```

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![Teriander](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teriander/32/1015685_2.png) [@Teriander](https://forums.unrealengine.com/u/Teriander)\
**Post date:** [July 18, 2016, 11:19pm UTC](https://forums.unrealengine.com/t/how-to-kill-hzb/299227/3 "2016-07-18T23:19:46Z")

</div>

r.HZBOcclusion=0

Did not work for me. HZB Setup is still taking a huge chunk out of my performance. Any suggestions?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [July 19, 2016, 2:57pm UTC](https://forums.unrealengine.com/t/how-to-kill-hzb/299227/4 "2016-07-19T14:57:23Z")

</div>

This has been reported and looks to be a regression but only when in PIE/Editor. Ticket has been submitted with UE-33448.

> **[GPU performance tuning of "HZB SetupMips" (As seen in GPU Visualizer)](https://forums.unrealengine.com/questions/431377/gpu-performance-tuning-of-hzb-setupmips-as-seen-in.html)**
>
> Hi guys, I need to optimize the GPU performance of a mobile VR game and tried “ProfileGPU” to view the GPU Vizualizer. This is what it looks like: Now I’m wondering about how to optimize the top offender “HZB SetupMips…” that costs 3.21ms. Any...

Also this post is very old back when HZBOcclusion was enabled by default but has since been disabled for the default hardware occlusion queries.

---

<div class="post-metadata">

**Author:** ![StrangerGwenn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strangergwenn/32/983202_2.png) [@StrangerGwenn](https://forums.unrealengine.com/u/StrangerGwenn)\
**Post date:** [September 3, 2016, 7:18am UTC](https://forums.unrealengine.com/t/how-to-kill-hzb/299227/5 "2016-09-03T07:18:17Z")

</div>

So how do we kill it ? r.HZBOcclusion=0 doesn’t work for me either.

---

<div class="post-metadata">

**Author:** ![EternalSilence](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EternalSilence](https://forums.unrealengine.com/u/EternalSilence)\
**Post date:** [June 27, 2017, 2:02pm UTC](https://forums.unrealengine.com/t/how-to-kill-hzb/299227/6 "2017-06-27T14:02:32Z")

</div>

I found the solution you need to put r.HZBOcclusion=1 not =0

---

<div class="post-metadata">

**Author:** ![bdogrular](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bdogrular](https://forums.unrealengine.com/u/bdogrular)\
**Post date:** [June 30, 2017, 12:05pm UTC](https://forums.unrealengine.com/t/how-to-kill-hzb/299227/7 "2017-06-30T12:05:16Z")

</div>

where is the consolevariables.ini ?

---

<div class="post-metadata">

**Author:** ![bdogrular](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bdogrular](https://forums.unrealengine.com/u/bdogrular)\
**Post date:** [June 30, 2017, 12:21pm UTC](https://forums.unrealengine.com/t/how-to-kill-hzb/299227/8 "2017-06-30T12:21:58Z")

</div>

well, thnx for trying, but that did **not** take my 10ms HZb mipmaps etc. to a lesser value…

---

<div class="post-metadata">

**Author:** ![calembendell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@calembendell](https://forums.unrealengine.com/u/calembendell)\
**Post date:** [September 19, 2017, 7:51pm UTC](https://forums.unrealengine.com/t/how-to-kill-hzb/299227/9 "2017-09-19T19:51:04Z")

</div>

This still seems to be broken.
