# Tsr quality

**URL:** <https://forums.unrealengine.com/t/tsr-quality/562728>\
**Category:** Rendering\
**Tags:** Post-Processing, unreal-engine, UE5-0, question\
**Created:** [May 21, 2022, 1:40pm UTC](https://forums.unrealengine.com/t/tsr-quality/562728 "2022-05-21T13:40:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![expy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expy/32/492600_2.png) [@expy](https://forums.unrealengine.com/u/expy)\
**Post date:** [May 21, 2022, 1:40pm UTC](https://forums.unrealengine.com/t/tsr-quality/562728/1 "2022-05-21T13:40:13Z")

</div>

Hey everyone, I’m facing huge lag on a simple scene in ue5. The profiler says that the problem is in the postprocess.  
Also when I turn TSR off I free around 20ms.  
Where is the information on tuning TSR, CV or something else?

 ![UnrealEditor_oRZR4UVD3X](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/6/2d63964d38d21344edf3817938a9ef2fadd97e75.jpeg)

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [May 21, 2022, 4:55pm UTC](https://forums.unrealengine.com/t/tsr-quality/562728/2 "2022-05-21T16:55:57Z")

</div>

It’s trying to upsample to 7k… I assume that is the problem…

Why it’s doing that I have no idea, probably something to do with how you’ve set up your project

---

<div class="post-metadata">

**Author:** ![expy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expy/32/492600_2.png) [@expy](https://forums.unrealengine.com/u/expy)\
**Post date:** [May 21, 2022, 6:02pm UTC](https://forums.unrealengine.com/t/tsr-quality/562728/3 "2022-05-21T18:02:21Z")

</div>

Yes, but I can’t find the settings for manually selecting  
initial and final resolution.

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [May 21, 2022, 10:08pm UTC](https://forums.unrealengine.com/t/tsr-quality/562728/4 "2022-05-21T22:08:53Z")

</div>

Run your project in standalone and then look at the GPU visualizer, does the issue go away?

---

<div class="post-metadata">

**Author:** ![RichmarIII](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RichmarIII](https://forums.unrealengine.com/u/RichmarIII)\
**Post date:** [May 21, 2022, 11:24pm UTC](https://forums.unrealengine.com/t/tsr-quality/562728/5 "2022-05-21T23:24:34Z")

</div>

TSR is very very expensive. On my macbook pro M1 it takes up most of the frame time. you can change it at runtime using this

```auto
r.AntiAliasingMode 0 // Off
r.AntiAliasingMode 1 // FXAA
r.AntiAliasingMode 2 // TAA (Works very well, gives significant performance back)
r.AntiAliasingMode 3 // MSAA
r.AntiAliasingMode 4 // TSR (New method, but extremely expensive)

setRes 1920x1080 // Sets backbuffer resolution, this is the resolution that TSR will upscale TO

r.ScreenPercentage 50 // Sets internal render resolution. TSR will upscale FROM this resolution (720p) To (1080p)

r.SecondaryScreenPercentage.GameViewport 50 // Scales the backbuffer resolution so that 720p is the new upscale target, and internal render will be at 360p

```

Lets take an example. if you wanted your device’s Screen Resolution to be 1920x1080, then  
`setRes 1920x1080`

but you actually wanted TSR or TAA to upscale the internal resolution using smart algorithms to 720p then  
`r.SecondaryScreenPercentage.GameViewport 50`

and you wanted to only actually render 360p for performance reasons, then  
`r.ScreenPercentage 50`

using that config, your game will actually only render 360p and the TSR or TAA upscaler will actually make it look like it’s rendering at 720p with a performance cost, then the device will simply stretch it at NO peformance cost to 1080p. Hope this helps

if you simply want so specify initial resolution and target resolution then

```auto
setRes 1920x1080 (Target 1080p)
r.ScreenPercentage 50 (Initial 720p)

```

This works on pc. but on consoles you may not be able to change the screen resolutioin, they may be locked at 4k, so you would actually do this

```auto
r.SecondaryScreenPercentage.GameViewport 50 (Target 1080p)
r.ScreenPercentage 50 (Initial 720p)

```

---

<div class="post-metadata">

**Author:** ![expy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/expy/32/492600_2.png) [@expy](https://forums.unrealengine.com/u/expy)\
**Post date:** [May 24, 2022, 7:02am UTC](https://forums.unrealengine.com/t/tsr-quality/562728/6 "2022-05-24T07:02:08Z")

</div>

Thx!
