# CCTV effect costs me a drop of about 30 FPS... WHY?

**URL:** <https://forums.unrealengine.com/t/cctv-effect-costs-me-a-drop-of-about-30-fps-why/2098083>\
**Category:** Blueprint\
**Tags:** Frame-Rate, framerate, unreal-engine, Blueprint, question\
**Created:** [October 31, 2024, 8:20pm UTC](https://forums.unrealengine.com/t/cctv-effect-costs-me-a-drop-of-about-30-fps-why/2098083 "2024-10-31T20:20:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![razkoller](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/razkoller/32/623690_2.png) [@razkoller](https://forums.unrealengine.com/u/razkoller)\
**Post date:** [October 31, 2024, 8:20pm UTC](https://forums.unrealengine.com/t/cctv-effect-costs-me-a-drop-of-about-30-fps-why/2098083/1 "2024-10-31T20:20:23Z")

</div>

Hello all.

In my game there’s these two doors that are connected. Basically I just have a trigger volume around them, so when the player walks into one, I teleport them to the location of the other.

But for the visual effect I followed a tutorial and did a little CCTV style effect on the door, so you can see the location you’ll be teleported to in this kinda nice pixelated way.

 ![Screenshot 2024-10-31 201304](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/e/70ec4a332a61efb397e744ea48c0dc24e3773f8b.jpeg)  
 ![Screenshot 2024-10-31 201247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/0/690d6bcb9f0f42d188066d13291ecb28b18a6b38.jpeg)

The problem is that this little effect drops my frame rate by 30 or more!

The blueprint is fairly simple.  
It a mesh of a door, a mesh of a frame, and then I have a plane that I use to project on, and a camera.

 ![Screenshot 2024-10-31 200410](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/9/f09d600f42dd85446312673b5672beec04463481.jpeg)

I connect the two doors with this editable variable

 ![Screenshot 2024-10-31 200504](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/4/0b42e938fec46876c3d47b24a7dfa61dc502b8d8.jpeg)

Then the event graph is fairly straight forwards, I create a dynamic material and basically just use the resulted input from the camera as a material. (sorry, the wrong thing is highlighted in the screen shot. The top custom event is the important one).

 ![Screenshot 2024-10-31 200324](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/f/f8f89b3ec175719052dfc34266831a119fd2121c.png)

It works great, but like I said, the price is simply too high. Anyone has any advice on how to make it more efficient?  
Perhaps there’s an altogether different way of achieving something like that?

As usual - thank you very much for your knowledge and advice!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 31, 2024, 9:20pm UTC](https://forums.unrealengine.com/t/cctv-effect-costs-me-a-drop-of-about-30-fps-why/2098083/2 "2024-10-31T21:20:46Z")

</div>

The trouble with a render target, is that you’re basically rendering the world twice. Once for this side of the door, and once for the other side. So I’m assuming it probably roughly halves your frame rate?

It is possible to improve things by making the target low res, but it looks like crap.

I think the only way to really made a big difference is to only render the part you need, which means you’ll need to do it in C++, just because you get a lot more control over what’s going on.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/c/0ac1893855d0992de91b8e9c0fdd67acd4a13b9c.jpeg "How were the portals in Portal created? | Bitwise") ](https://www.youtube.com/watch?v=_SmPR5mvH7w)

[https://www.reddit.com/r/unrealengine/comments/bvdlvl/portals\_bp\_update\_recursion\_performance/](https://www.reddit.com/r/unrealengine/comments/bvdlvl/portals_bp_update_recursion_performance/)

---

<div class="post-metadata">

**Author:** ![razkoller](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/razkoller/32/623690_2.png) [@razkoller](https://forums.unrealengine.com/u/razkoller)\
**Post date:** [October 31, 2024, 10:36pm UTC](https://forums.unrealengine.com/t/cctv-effect-costs-me-a-drop-of-about-30-fps-why/2098083/3 "2024-10-31T22:36:12Z")

</div>

I see what you mean.  
Honestly? I think I may have overdone it. Since in my case, you can’t open a portal randomly like the player can in the game Portal. It’s just two pre-determined points that are connected. And there’s nothing moving in that room.  
So I probably can get away with just having an image or a pre-rendered video looping, instead of a live render of the actual room. 🤔

Anyway, once again, thanks for your reply!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 1, 2024, 7:37am UTC](https://forums.unrealengine.com/t/cctv-effect-costs-me-a-drop-of-about-30-fps-why/2098083/4 "2024-11-01T07:37:01Z")

</div>

If nothing’s changing, then just a static picture 🙂
