# Improve Performance in Frustum Angle

**URL:** <https://forums.unrealengine.com/t/improve-performance-in-frustum-angle/448008>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** culling, precomputed-visibili, unreal-engine, Performance, question\
**Created:** [April 28, 2019, 3:37pm UTC](https://forums.unrealengine.com/t/improve-performance-in-frustum-angle/448008 "2019-04-28T15:37:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![terzut](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@terzut](https://forums.unrealengine.com/u/terzut)\
**Post date:** [April 28, 2019, 3:37pm UTC](https://forums.unrealengine.com/t/improve-performance-in-frustum-angle/448008/1 "2019-04-28T15:37:09Z")

</div>

Hello and thanks for your time,

I have a problem with my GPU Rendering.  
My Level containing 100.000+ Actors/Meshes which are from the start in Frustum angle.  
But only ~400 need to be visible, 2 objects each ~200 child actor components, and at every time I can exactly say which are these 400.  
Precomputed Visibility, Distance Culling Volumes, Max Draw Distance doesn’t help like expected.

_Additional Informations:_

- Mobility of every element is static
- Iam using only emissive color Materials (default lit/unlit, Opaque, Surface).
- 

_Can someone explain me:_  
_1._ Is it normal that in “stat initviews” “processed primitives” is always equal to all primitives? Even if culled, hidden in game, invisible in viewport, …  
_2._ My Occlusion Queries in “stat initviews” are very high I think, but none of the mentioned features helped me. For me it looks like, that this is my primary problem. Should the features above help there?  
_3._ Precomputed visibility need “static shadow” triangles. A Mesh with a lit and a unlit Material can throw a static shadow, if Iam using aggressive precomputed Visibility I can see that this elements pop up.  
_3.1_ Should this work as expected even if I don’t have any lightsource?  
_3.2_ If iam using a “Precomputed Visibility Override Volume” and adding this 400 Actors and force invisible for all others (lets say 2000+ f.e.), there are less than 400 elements “statically occluded”. Can someone explain me why this can happen?  
_3.3_ If an Object has a max draw Distance of 1000 maybe because set directly or if in distance culling volume, can precomputed visibility use this information?

Examples with 30 Wall instead of 2000 Walls:  
Only Distance Culling set up to view 2 walls, no precomputed visibility.  
Watching in direction of 1/2 walls

 ![275414-example-good.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/f/2cf48786c83467a94ae9fe7de829055614c11dfd.png)

Watching in direction of 28 walls

 ![275415-example-bad.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/c/13c23a95c611cc4f8a031b788dee6ad23815f059.png)

Only precomputed visibility, aggressive:  
Watching in direction of 1/2 walls

 ![275419-example-30-walls-precomputed-good.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/a/6fa005a187da3cf25716747afc7ff4f223e0c1e8.png)

Watching in direction of 28 walls

 ![275422-example-30-walls-precomputed-bad.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/4/034f00f827865793afdcafcfb9bc01d117da0294.png)

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [April 30, 2019, 6:44pm UTC](https://forums.unrealengine.com/t/improve-performance-in-frustum-angle/448008/2 "2019-04-30T18:44:27Z")

</div>

1. initviews is what culls and hides your primitives, so yes, it is normal
2. high time on occlusion queries mean only that too many of those are submitted. What you are seeing, is totally expected with respect to your primitive counts.

---

<div class="post-metadata">

**Author:** ![terzut](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@terzut](https://forums.unrealengine.com/u/terzut)\
**Post date:** [May 1, 2019, 11:12am UTC](https://forums.unrealengine.com/t/improve-performance-in-frustum-angle/448008/3 "2019-05-01T11:12:05Z")

</div>

Thanks, that will help me to look into it.
