# Vehicle mirrors performance issues - SceneCapture

**URL:** <https://forums.unrealengine.com/t/vehicle-mirrors-performance-issues-scenecapture/480436>\
**Category:** World Creation\
**Tags:** mirror, scenecapture2d, vehicle, unreal-engine, Physics, question\
**Created:** [March 17, 2021, 8:48am UTC](https://forums.unrealengine.com/t/vehicle-mirrors-performance-issues-scenecapture/480436 "2021-03-17T08:48:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Makro007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Makro007](https://forums.unrealengine.com/u/Makro007)\
**Post date:** [March 17, 2021, 8:48am UTC](https://forums.unrealengine.com/t/vehicle-mirrors-performance-issues-scenecapture/480436/1 "2021-03-17T08:48:22Z")

</div>

Hi. I bought a vehicle and started updating it for a game. So i added 3 SceneCaptureComponent2D to work as mirrors. To make it work i added a texture target and a material for each mirror. With no additional setting changes the performance drops massively (from constant 60fps to 25fps). I also changed the render to be updated only at half the frequency. Does anyone know any better way to achieve good mirrors in a vehicle?

Base settings:  
SceneCaptureComponent2D

![332699-scenecapture2d.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/4/b442cdb8b1c61c756e04441e6582fac0aef64e25.png)

TextureTarget

![332700-texturetarget.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/8/5a8cc62beb29112e9ddfe1c419b61536a3cfe0f4.png)

Material

![332741-material1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/1/c016515aa5299559c0221ccf50ac3cf4cce47ead.png)

![332742-material2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/a/a4a0a4c7216ea277cb92d84adaa82142cb2b1dc6.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 17, 2021, 9:25am UTC](https://forums.unrealengine.com/t/vehicle-mirrors-performance-issues-scenecapture/480436/2 "2021-03-17T09:25:45Z")

</div>

How large are the mirrors? I don’t think you need a 1024x1024 capture for that? That’s like half the screen. Consider using a much lower value that still looks OK.

---

<div class="post-metadata">

**Author:** ![Makro007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Makro007](https://forums.unrealengine.com/u/Makro007)\
**Post date:** [March 17, 2021, 9:35am UTC](https://forums.unrealengine.com/t/vehicle-mirrors-performance-issues-scenecapture/480436/3 "2021-03-17T09:35:29Z")

</div>

I am using 3 TVs and a cockpit view so the mirrors are quite big. I’ll try lowering it and finding a nice spot between performance and looks. Is the scene capture method is the best way of doing mirrors in a vehicle?

---

<div class="post-metadata">

**Author:** ![Makro007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Makro007](https://forums.unrealengine.com/u/Makro007)\
**Post date:** [March 17, 2021, 9:55am UTC](https://forums.unrealengine.com/t/vehicle-mirrors-performance-issues-scenecapture/480436/4 "2021-03-17T09:55:37Z")

</div>

It doesnt help that much. I went to 256x256 and its ugly but still at max 40fps. I checked that there are no other parts that make the drop. So the only thing that drops the fps are the sceneCapture components. Is there any other part that i need to check?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 17, 2021, 10:19am UTC](https://forums.unrealengine.com/t/vehicle-mirrors-performance-issues-scenecapture/480436/5 "2021-03-17T10:19:02Z")

</div>

I don’t have a ready setup to answer with, as configuring a scene capture depends on the circumstances and your needs (did not ever cross my mind the mirrors would be that large _and_ on peripheral monitors!).

* * *

Do explore this panel to start with, the flags control what is captured:

 ![332746-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/4/474879c470cad4031f8468aeb9914ee907111a80.jpeg)

I know that Deferred Lighting is a hog. Never seen a summary of details regarding tangible performance benefits. But, as a rule of thumb, I’d start with everything off and hopefully arrive at the visuals that do not compromise on the visual fidelity too much.

---

<div class="post-metadata">

**Author:** ![Makro007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Makro007](https://forums.unrealengine.com/u/Makro007)\
**Post date:** [March 19, 2021, 11:29am UTC](https://forums.unrealengine.com/t/vehicle-mirrors-performance-issues-scenecapture/480436/6 "2021-03-19T11:29:35Z")

</div>

Going through all the options and testing performance was the solution. A lot of those were unnecessary for the mirrors and for now i found a nice spot. Thanks for the help!

Final settings

 ![332985-mirrors.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/7/8576dd94e32f962a4bc0577b368eb73deb7e9bd0.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 19, 2021, 12:14pm UTC](https://forums.unrealengine.com/t/vehicle-mirrors-performance-issues-scenecapture/480436/7 "2021-03-19T12:14:15Z")

</div>

Ah, cool. Great update.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 19, 2021, 12:26pm UTC](https://forums.unrealengine.com/t/vehicle-mirrors-performance-issues-scenecapture/480436/8 "2021-03-19T12:26:00Z")

</div>

I’ll just add that the capture component comes with some granularity as well:

 ![332987-screenshot-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/1/2413b2c97d791a6b812e405b035e4a87b26c8d9a.jpeg)

And will not capture anything outside of the provided list - another way to weed out undesired elements. Perhaps the interior details of other cars don’t need to show up in the mirrors, for example.

Although this is more useful for isolating specific entities rather than removing an odd one.
