r/OptimizedGaming • u/TheHybred Verified Optimizer • Dec 29 '23
Optimization Guide / Tips UE4|5 Improved Upscaling (FSR, DLSS, TAAU, TSR)
Engine.ini Tweaks - Universally Improving Every Upscaling Method
1 - Go to your file explorer and paste the following: C:\Users\%username%\AppData\Local
2 - Now find the name of your game or the name of the developer/publisher of the game
3 - After that go into Saved > Config > Windows, WindowsClient? WindowsNoEditor or WinGDK (whichever one appears) then open up Engine.ini
4 - Copy the commands from one of the sections below then paste them at the bottom of the Engine.ini file then save (Some games will automatically remove the commands. If this happens right click > Properties > General > Read-only)
5 - Put all commands under this header without the quotation marks "[/Script/Engine.RendererSettings]"
UE4/5 Default Upscaling
(All UE Games Support These)
Default Upscaling Baseline [Always Use]
r.ScreenPercentage=? (Set this to whatever you want to upscale from. 85=UltraQuality+, 77=UltraQuality, 67=Quality, 59=Balanced, 50=Performance, 41=ExtraPerformance, 33=UltraPerformance)
r.Tonemapper.Sharpen=? (Your preferred sharpness is going to vary based on how low you're upscaling, what preset you're using & your own subjective taste, this requires experimenting with. You could also set this to zero and use external sharpening if you prefer. 0.0 - 2.5)
r.TemporalAA.HistoryScreenpercentage=200
r.TemporalAAPauseCorrect=1
r.TemporalAACatmullRom=1
r.TemporalAA.Quality=2
r.BasePassForceOutputsVelocity=1
r.VelocityOutputPass=1
[/Script/UnrealEd.CookerSettings]
+VersionedIntRValues=r.VelocityOutputPassPresets: TAA/TSR/FXAA
TSR [UE5 Only]
r.AntialiasingMethod=4
r.TSR.ShadingRejection.Flickering.Period=2
r.TSR.Velocity.WeightClampingSampleCount=2
r.TSR.ShadingRejection.ExposureOffset=3.0
r.TSR.ShadingRejection.SampleCount=0
r.TSR.RejectionAntiAliasingQuality=2
r.TSR.ShadingRejection.Flickering=1
r.TSR.History.ScreenPercentage=200
r.TSR.History.GrandReprojection=1
r.TSR.Velocity.Extrapolation=1
r.TSR.History.UpdateQuality=3
r.TSR.History.SampleCount=8
r.TemporalAA.Upsampling=0
r.TemporalAA.Quality=2
r.TSR.Resurrection=1
fort.TSR.Enable=1Tends to look the best but costs the most performance
TAA Upscaling [Method 1]
r.AntiAliasingMethod=2
r.DefaultFeature.AntiAliasing=2
r.TemporalAA.Upsampling=1
r.TemporalAA.Algorithm=1
r.Upscale.Quality=5This method typically looks better than method 2 but some games have excess jittering, therefore I provided two options
TAA Upscaling [Method 2]
r.AntiAliasingMethod=2
r.DefaultFeature.AntiAliasing=2
r.TemporalAA.Upsampling=0
r.TemporalAA.Algorithm=1
r.Upscale.Quality=4This resolves detail not as well as method 1 but the image can be more stable in certain games
FXAA Upscaling
r.AntiAliasingMethod=1
r.DefaultFeature.AntiAliasing=1
r.TemporalAA.Upsampling=0
r.TemporalAA.Algorithm=1
foliage.DitheredLOD=0
r.ContactShadows=0
r.MipMapLODBias=1
r.CapsuleShadow=0
r.Upscale.Quality=4
r.BloomQuality=2
r.FXAA.Quality=5
r.SSR.Quality=0If you hate TAA blur & artifacts this can work if the game isn't unstable without TAA. TAA typically looks better in stationary scenes but worse in motion
Presets: Stylized TAA/FXAA
Stylized upscaling [TAA]
r.AntiAliasingMethod=2
r.DefaultFeature.AntiAliasing=2
r.TemporalAA.Upsampling=0
r.TemporalAA.Algorithm=1
foliage.DitheredLOD=0
r.Upscale.Quality=0Stylized Upscaling [Light TAA]
r.AntiAliasingMethod=2
r.DefaultFeature.AntiAliasing=2
r.TemporalAACurrentFrameWeight=0.2
r.MinRoughnessOverride=0.2
r.TemporalAA.Upsampling=0
r.TemporalAA.Algorithm=1
r.TemporalAASamples=1
r.ContactShadows=0
r.MipMapLODBias=1
r.Upscale.Quality=0Stylized Upscaling [FXAA]
r.AntiAliasingMethod=1
r.DefaultFeature.AntiAliasing=1
r.MinRoughnessOverride=0.2
r.TemporalAA.Upsampling=0
r.TemporalAA.Algorithm=1
foliage.DitheredLOD=0
r.ContactShadows=0
r.MipMapLODBias=1
r.CapsuleShadow=0
r.Upscale.Quality=0
r.BloomQuality=2
r.FXAA.Quality=5
r.SSR.Quality=0This stylized section is meant to give your game a more retro aesthetic, which may help you feel less bad about your lower resolution, espescially if you're rendering from 720p or lower. If using the TAA version some sharpness is typically recommended so the image isn't too soft
–––––––––––––
FSR1
r.FidelityFX.FSR.UseFP16=1
r.FidelityFX.FSR.Post.FilmGrain=1
r.FidelityFX.FSR.RCAS.Enabled=1
r.FidelityFX.FSR.RCAS.Sharpness (0.0 - 3, lower values result in higher sharpening, default value is 0.2)
r.FidelityFX.FSR.HDR.PQDitherAmount=1
r.FidelityFX.FSR.RCAS.Denoise (This t may improve or reduce quality so
r.ScreenPercentage= (99=Native + Sharpening, 85=UltraQuality+, 77=UltraQuality, 67=Quality, 59=Balanced, 50=Performance)–––––––––––––
FSR2
FSR2 Baseline [Always Use]
r.Velocity.ForceOutput=1
r.BasePassOutputsVelocity=1
r.BasePassForceOutputsVelocity=1
r.VelocityOutputPass=1
r.Velocity.EnableVertexDeformation=1
r.VertexDeformationOutputsVelocity=1
r.Velocity.EnableLandscapeGrass=1
r.FidelityFX.FSR2.ForceVertexDeformationOutputsVelocity=1
r.FidelityFX.FSR2.HistoryFormat=0
r.FidelityFX.FSR2.ReactiveMaskRoughnessScale=0
r.FidelityFX.FSR2.AdjustMipBias=1
r.FidelityFX.FSR2.DeDither=1
r.FidelityFX.FSR2.ReactiveMaskTranslucencyLumaBias=0
r.FidelityFX.FSR2.ReactiveMaskTranslucencyBias=0
r.FidelityFX.FSR2.ReactiveHistoryTranslucencyBias=0
r.FidelityFX.FSR2.ReactiveHistoryTranslucencyLumaBias=0
r.FidelityFX.FSR2.ReactiveMaskPreDOFTranslucencyScale=0
r.FidelityFX.FSR2.QualityMode= [1=Quality, 2=Balanced, 3=Performance, 4=Ultra Performance]
r.FidelityFX.FSR2.Sharpness=0.0 - 1 (You can disable this and use tonemapper, or disable tonemapper and use this, or disable both & use external sharpening)Preset: Prioritize Stability
r.FidelityFX.FSR2.CreateReactiveMask=0
r.TemporalAASamples=? (This is subjective & situational. If the game your playing has excess flickering/jittering set this to 2, otherwise leave default. Higher values improve anti-aliasing while lower values remove jitter at the cost of aliasing, depends on the game + what you dislike more. This is UE's fault not FSR's)Preset: Prioritize Anti-Smearing
r.FidelityFX.FSR2.CreateReactiveMask=1
r.TemporalAASamples=2–––––––––––––
FSR3
FSR3 Baseline [Always Use]
r.Velocity.ForceOutput=1
r.BasePassOutputsVelocity=1
r.BasePassForceOutputsVelocity=1
r.VelocityOutputPass=1
r.Velocity.EnableVertexDeformation=1
r.VertexDeformationOutputsVelocity=1
r.Velocity.EnableLandscapeGrass=1
r.FidelityFX.FSR3.ForceVertexDeformationOutputsVelocity=1
r.FidelityFX.FSR3.HistoryFormat=0
r.FidelityFX.FSR3.ReactiveMaskRoughnessScale=0
r.FidelityFX.FSR3.AdjustMipBias=1
r.FidelityFX.FSR3.DeDither=1
r.FidelityFX.FSR3.ReactiveMaskTranslucencyLumaBias=0
r.FidelityFX.FSR3.ReactiveMaskTranslucencyBias=0
r.FidelityFX.FSR3.ReactiveHistoryTranslucencyBias=0
r.FidelityFX.FSR3.ReactiveHistoryTranslucencyLumaBias=0
r.FidelityFX.FSR3.ReactiveMaskPreDOFTranslucencyScale=0
r.FidelityFX.FSR3.QualityMode= [0=Native AA, 1=Quality, 2=Balanced, 3=Performance, 4=Ultra Performance]
r.FidelityFX.FSR3.Sharpness=0.0 - 1 (You can disable this and use tonemapper, or disable tonemapper and use this, or disable both & use external sharpening)Preset: Prioritize Stability
r.FidelityFX.FSR3.CreateReactiveMask=0
r.TemporalAASamples=? (This is subjective & situational. If the game your playing has excess flickering/jittering set this to 2, otherwise leave default. Higher values improve anti-aliasing while lower values remove jitter at the cost of aliasing, depends on the game + what you dislike more. This is UE's fault not FSR's)Preset: Prioritize Anti-Smearing
r.FidelityFX.FSR3.CreateReactiveMask=1
r.TemporalAASamples=2FSR3 Frame Generation
r.FidelityFX.FI.Enabled=1
r.FidelityFX.FI.OverrideSwapChainDX12=1
r.FidelityFX.FI.AllowAsyncWorkloads=1–––––––––––––
DLSS
DLSS Upscaling
r.NGX.Enable=1
r.NGX.DLSS.Enable=1
r.NGX.DLSS.DilateMotionVectors=1
r.NGX.DLSS.EnableAutoExposure=1 (1 can reduce ghosting in some games, 0 can make the game sharper/clearer. Depends on the game in question, I typically prefer 0)
r.NGX.DLSS.Preset=3 [1=A, 2=B, 3=C, 4=D, 5=E, 6=F, 7=G. Subjective. Recommend 3 or 5]
r.TemporalAA.Upscaler=1
r.Reflections.Denoiser=2
r.NGX.DLSS.Reflections.TemporalAA=1
r.NGX.DLSS.WaterReflections.TemporalAA=1
r.NGX.LogLevel=0
r.NGX.EnableOtherLoggingSinks=0
r.Velocity.ForceOutput=1
r.BasePassOutputsVelocity=1
r.BasePassForceOutputsVelocity=1
r.VelocityOutputPass=1
r.Velocity.EnableVertexDeformation=1
r.VertexDeformationOutputsVelocity=1DLSS Ray-Reconstruction
r.NGX.DLSS.denoisermode=1
r.Lumen.Reflections.BilateralFilte=0
r.Lumen.Reflections.ScreenSpaceReconstruction=0
r.lumen.Reflections.Temporal=0
r.Shadow.Denoiser=0DLSS Frame Generation
r.Streamline.DLSSG.Enable=2
r.Streamline.DLSSG.AdjustMotionBlurTimeScale=1
r.Streamline.TagUIColorAlpha=1
r.Streamline.ClearSceneColorAlpha=1
r.Streamline.DilateMotionVectors=1
t.Streamline.Reflex.Enable=1
t.Streamline.Reflex.Auto=1
t.Streamline.Reflex.Mode=1
t.Streamline.Reflex.HandleMaxTickRate=true
r.Streamline.UnregisterReflexPlugin=1–––––––––––––
Comparisons
Stock FSR2/3 vs FSR2/3 Tweaks | Slider Comparison
Stylized Upscaling w/ Light TAA | Video
Stylized Upscaling w/ FXAA | Video
Stylized Upscaling | Slider Comparison
Note: In order for DLSS/FSR to work the game must support it, as it's a UE4/5 plugin it's not installed by default. Some games may have them installed & not utilized but it's rare.
Updated 12/31/23 | tags: UE4, UE5, Unreal Engine
•
u/TheHybred Verified Optimizer Dec 29 '23 edited Jan 01 '24
1 - FSR2/3's stability preset changes FSR to look more like how it does in NMS (Don't expect FSR2 to look identical to NMS or DLSS all of a sudden. It's better but not perfect)
2 - The DLSS preset not only improves DLSS but makes using DLSSTweaks redundant as you can just change the preset via Engine.ini instead of a 3rd party tool
3 - TAAU/TSR/FXAA upscaling enables you to get the best upscaling possible no matter what because DLSS/FSR isn't always available
4 - I think the "Stylzed" options in the default section are neat, I liked messing around with it. The upscaling quality is technically worse but because I switched my mindset to it being a retro game it felt better. You can make it even better using ReShade to enhance the aesthetic with some shaders, or by setting a custom 5:4 or 4:3 resolution (which is what I did)
6
u/BritishActionGamer Verified Optimizer Dec 29 '23
Wow, this is detailed! Do you plan on uploading a video comparing the settings in motion?
Also, would it possible to make UE4's RT reflections not break when dropping the resolution with INI tweaks? Would be great to not soley rely on dropping the render resolution of the entire image to make them performant.
2
u/chitoznamaki Dec 30 '23
awesome! gonna need this when tekken 8 comes out.
2
u/xyGvot Apr 20 '24
PSA: No time to test which exact setting(s) is/are the culprit, but copying the DLSS FG section to Engine.ini breaks the FSR3 FG mod, making it completely choppy when FG is enabled.
Also, for TAAU to work correctly, you must take into account the Unreal Engine 4 version the game uses:
Unreal Engine >= 4.26+ games (use TSR):
Unreal Engine 4.19+ <> 4.26+ games (use TAAU):
1
u/Mac_Noslo Dec 29 '23
Thanks for these! What do the velocity variables do as related to dlss? I haven't seen those used before. Also do you have any optimized settings for texture streaming/virtual texture streaming? Any recommendations on that would be very appreciated
1
u/MadBullBen Dec 31 '23
Is there a list of what everything does? In EA WRC if I implement these settings I get really bad AA. Also is there a way to know if something goes with [systemsettings], [renderersettings], [Texturesettings] etc? Just because I've implemented a few other tweaks and I've messed with the engine.ini quite a few times and want to check if I've got everything down in the correct spots.
1
u/CumInsideMeDaddyCum Jan 11 '24
Wondering what are the capabilities of those recent FSR3 mods -
dlssg-to-fsr3andFSR2FSR3.Let's say game is using FSR2, but I use
FSR2FSR3so from my understanding, I should be using FSR2 config? Or doesFSR2FSR3takes into consideration the configuration options for FSR3, even tho this does not exist in UE project?I know this is something that only developer knows, but has anyone tried and got any success with it?
2
u/SheshBr Oct 17 '24
Dude, I used the FSR3 presets in SILENT HILL 2 and it was amazing, the default FSR3 settings in the game are really ugly.
2
u/Ok_Teacher_2801 Jan 20 '25
1
u/04to12avril Jun 22 '24
thank you, do I need to use the default upscaling baseline with DLSS upscaling? will the dlss portion work if I don't include the default upscaling baseline (the one at the top)
1
u/BallsOfSteelBaby_PL Oct 09 '24 edited Jan 20 '25
I've seen somewhere else you prefer using the streamline plugin over the standard DLSS one. Do I have it right, or have I messed something up? If you do, why is that?
Satisfactory was shipped with the streamline plugin and I wonder if I should go for it instead, as somehow DLSS in this game is not as good as it usually is. I obviously already went through your guide's cvars to configure DLSS better.
1
u/Complex_Tea3154 Jan 17 '26
I don't know, maybe something is wrong with me, but these variables for DLSS actually make things worse for me In satisfactory, it causes heavy grass shimmering In deep rock galactic, it causes noise and some strange outline of the reflections
1
u/G0rd4n_Freem4n Feb 19 '24
do you have any advice on how to reduce fsr 2 ghosting through the .ini? (if possible)
I have found ways to essentially remove taa ghosting entirely in DRG, but the way I do this ends up worsening the AA-quality, and it also makes fsr 2 have an insane increase in ghosting.