# How to reduce BasePass Dynamic? \[Oculus VR\]

**URL:** <https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957>\
**Category:** XR Development\
**Tags:** Frame-Rate, GPU-Profiling, fps-drop, unreal-engine, dynamic, question\
**Created:** [April 18, 2018, 9:59am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957 "2018-04-18T09:59:51Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_605b1ae7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_605b1ae7](https://forums.unrealengine.com/u/anonymous_user_605b1ae7)\
**Post date:** [April 18, 2018, 9:59am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/1 "2018-04-18T09:59:51Z")

</div>

Hi,

Can someone explain me what I need to fix to higher my FPS based on this screenshot?

Sidestory:  
My shadows are disabled, my lights are removed, my procedural meshes are all set ‘static’, my components in the room are radically reduced. I got about 7 transparent windows left… Anyone knows what should higher my FPS?

 ![237952-fps.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/b/f5b1f5c33f8a62395e94bc04980906c8a7b6f319.png)

With lights ON:

 ![237953-gpu.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/c/66cd512c2acfa5bf8e3e3a0d5e8c7efc5a781b22.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b537cab31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b537cab31](https://forums.unrealengine.com/u/anonymous_user_b537cab31)\
**Post date:** [April 18, 2018, 10:26am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/2 "2018-04-18T10:26:28Z")

</div>

Since you’re running VR, have you tried switching to forward rendering?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_605b1ae7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_605b1ae7](https://forums.unrealengine.com/u/anonymous_user_605b1ae7)\
**Post date:** [April 18, 2018, 10:40am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/3 "2018-04-18T10:40:30Z")

</div>

It’s on 🙂 if this is what you mean.

 ![237955-forward-rendering.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/8/f88e9822094414599ad696a9b437e49213ba8d4d.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b537cab31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b537cab31](https://forums.unrealengine.com/u/anonymous_user_b537cab31)\
**Post date:** [April 18, 2018, 11:13am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/4 "2018-04-18T11:13:03Z")

</div>

well there are numerous ways to optimize a game.  
you can reduce drawcalls by merging multiple objects and using materials wisely, like having one master material for most of your materials.  
Reducing the distance at which shadows are rendered.  
Using LODs

also your own pc is a factor…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_605b1ae7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_605b1ae7](https://forums.unrealengine.com/u/anonymous_user_605b1ae7)\
**Post date:** [April 18, 2018, 11:44am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/5 "2018-04-18T11:44:25Z")

</div>

Can I use LODs with proceduralMeshes (C++)? if yes-\> do you know how? I think the only shadow currently enabled is the one of the sun…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_605b1ae7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_605b1ae7](https://forums.unrealengine.com/u/anonymous_user_605b1ae7)\
**Post date:** [April 18, 2018, 11:52am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/6 "2018-04-18T11:52:14Z")

</div>

Also, is 2542 draw calls a lot?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b537cab31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b537cab31](https://forums.unrealengine.com/u/anonymous_user_b537cab31)\
**Post date:** [April 18, 2018, 11:54am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/7 "2018-04-18T11:54:15Z")

</div>

what do you exactly mean with procedural mesh?  
If it’s a mesh you build and you’re generating it randomly across your level, then it can have lods.  
if it’s a random mesh you create via coding, you can still probably create a lod version of it via coding again.  
but i’m not a programmer so i have no idea how to code something like that.

it doesn’t matter if the sun is the only light that has cast shadow enabled, if you scene/level has a lot of objects or perhaps moving objects that will receive that shadow…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b537cab31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b537cab31](https://forums.unrealengine.com/u/anonymous_user_b537cab31)\
**Post date:** [April 18, 2018, 12:01pm UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/8 "2018-04-18T12:01:50Z")

</div>

depends on what your level is.  
if it’s a big level, like a city it’s oke.  
However, that many drawcalls is still a lot depending on hardware.  
for mobile devices, that’s an absolutely no go XD

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_605b1ae7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_605b1ae7](https://forums.unrealengine.com/u/anonymous_user_605b1ae7)\
**Post date:** [April 18, 2018, 12:24pm UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/9 "2018-04-18T12:24:08Z")

</div>

My level is only an office floor with a few rooms.  
current and only device it should run on for now: Intel i7-5820 3,3GHz. RAM 16 GB. GeForrce GTX980 Ti

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b537cab31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b537cab31](https://forums.unrealengine.com/u/anonymous_user_b537cab31)\
**Post date:** [April 18, 2018, 12:31pm UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/10 "2018-04-18T12:31:18Z")

</div>

then you should be fine.  
i have a city level with 4.701.00 drawcalls, and the city is about 500x500 units.  
I am running a 1080, 16gb RAM, i5-4590 3.30ghz.  
And my scene is in VR and i have about 70-90FPS, with deferred rendering.

how many fps are you running your project in VR?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_605b1ae7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_605b1ae7](https://forums.unrealengine.com/u/anonymous_user_605b1ae7)\
**Post date:** [April 18, 2018, 2:47pm UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/11 "2018-04-18T14:47:53Z")

</div>

worst 22 FPS (30-40ms), with all shadows, lights, … turned on. But you probably created your city consisting of static meshes?  
I’m creating my world at ‘begin play’ with procedural meshes (c++). That might be a reason why my fps is worse even with less drawcalls?

with most of the lights turned off, shadows turned off I’m on 45FPS → I want to get it to 90. Because my scene isn’t realistically rendered at the moment.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b537cab31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b537cab31](https://forums.unrealengine.com/u/anonymous_user_b537cab31)\
**Post date:** [April 18, 2018, 2:58pm UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/12 "2018-04-18T14:58:38Z")

</div>

How is your procedural generated project working?  
If you generate the world all in one go, it’s best to have a loading screen and wait until everything is loaded.

If the world is being randomly generated at runtime, all the time like the event tick you mention. You may have to to optimize your coding, because i don’t think the enviornment(or art) is the problem here.

What is your total triangle count in the scene?

I have 1.548.630 triangles in total in my scene, consisting of 6.398 actors.

And yes about 90% of my city is build upon static meshes.

What you could do maybe, but i haven’t tried it out yet in UE4.  
Is bake one particular section or room of your scene (that which is being randomly generated as one piece), bake the lighting and make that the object that is being generated.  
And make it a child of an empty actor so that you can move it around.

Also instead of randomly generating, you can also have multiple rooms which randomly get turned off (in terms of visibility) and on at the beginning. this way you can also have baked lighting.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_605b1ae7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_605b1ae7](https://forums.unrealengine.com/u/anonymous_user_605b1ae7)\
**Post date:** [April 19, 2018, 6:46am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/13 "2018-04-19T06:46:30Z")

</div>

My world is only generated once at ‘begin play’ so it’s not happening evry tick. The problem is probably that UE simplifies things with static meshes… all sorts of optimizations. It doesn’t do that (as much) for procedural meshes. I’m basically Importing an ‘.Obj’ file but not as 1 piece but in the original pieces. So it’s not random.  
If I import it as one piece, my framerate is good. But I loose all the seperate pieces that I also want to be moving. So that’s not an option.  
Maybe if I could transform the procedural meshes into static meshes, befor all the stuff happens, it would also optimize the pieces better.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_605b1ae7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_605b1ae7](https://forums.unrealengine.com/u/anonymous_user_605b1ae7)\
**Post date:** [April 19, 2018, 6:49am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/14 "2018-04-19T06:49:55Z")

</div>

I indeed made these procedural meshes child of an actor so I can move things around 😃 .  
I have about 1500 actors right now. A bit to much for what actually needs to be moving, but for now I don’t have a better way defining what should be moving and what not. Thank you for that actor number, I can exclude that from being a problem for my framerate.  
Howmany draw calls do you have?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b537cab31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b537cab31](https://forums.unrealengine.com/u/anonymous_user_b537cab31)\
**Post date:** [April 19, 2018, 8:12am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/15 "2018-04-19T08:12:47Z")

</div>

Like I said before " i have a city level with 4.701.00 drawcalls, and the city is about 500x500 units. "

But i don’t think i can help you further, if the problem lies with the importing of multiple OBJ files. While importing it as one OBJ file you have stable framerate, then this problem is sort of beyond me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_605b1ae7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_605b1ae7](https://forums.unrealengine.com/u/anonymous_user_605b1ae7)\
**Post date:** [April 19, 2018, 11:16am UTC](https://forums.unrealengine.com/t/how-to-reduce-basepass-dynamic-oculus-vr/422957/16 "2018-04-19T11:16:51Z")

</div>

Well thank you for your time and your extra information 🙂
