Difference between revisions of "Engine:Unreal Engine 4"
(part 2) |
|||
Line 22: | Line 22: | ||
See [https://www.wsgf.org/ WideScreen Gaming Forum] and [https://www.flawlesswidescreen.org/ Flawless Widescreen] | See [https://www.wsgf.org/ WideScreen Gaming Forum] and [https://www.flawlesswidescreen.org/ Flawless Widescreen] | ||
− | ===[[ | + | ===[[High dynamic range (HDR)]]=== |
− | + | See [[Special_K#High_dynamic_range_.28HDR.29|Special K]] and [[List_of_games_that_support_Auto_HDR|Windows Auto HDR]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Exclusive fullscreen=== | ===Exclusive fullscreen=== | ||
Line 41: | Line 34: | ||
LastConfirmedFullscreenMode=0 | LastConfirmedFullscreenMode=0 | ||
PreferredFullscreenMode=0 | PreferredFullscreenMode=0 | ||
+ | </pre>}} | ||
+ | |||
+ | ===[[Glossary:Borderless fullscreen windowed|Borderless fullscreen windowed]]=== | ||
+ | {{Fixbox|description=Borderless fullscreen|fix= | ||
+ | Change {{File|GameUserSettings.ini}} to include these lines: | ||
+ | <pre> | ||
+ | [/Script/Engine.GameUserSettings] | ||
+ | FullscreenMode=1 | ||
+ | LastConfirmedFullscreenMode=1 | ||
+ | PreferredFullscreenMode=1 | ||
</pre>}} | </pre>}} | ||
Line 104: | Line 107: | ||
FrameRateLimit=120 | FrameRateLimit=120 | ||
</pre>}} | </pre>}} | ||
− | |||
− | |||
− | |||
===Ambient occlusion=== | ===Ambient occlusion=== | ||
− | {{Fixbox|description=Disable | + | {{Fixbox|description=Disable ambient occlusion|fix= |
Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | ||
<pre> | <pre> | ||
Line 117: | Line 117: | ||
===Bloom=== | ===Bloom=== | ||
− | {{Fixbox|description=Disable | + | {{Fixbox|description=Disable bloom|fix= |
Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | ||
<pre> | <pre> | ||
Line 124: | Line 124: | ||
</pre>}} | </pre>}} | ||
− | ===Screen | + | ===Screen space reflections=== |
− | {{Fixbox|description=Disable | + | {{Fixbox|description=Disable screen space reflections|fix= |
Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | ||
<pre> | <pre> | ||
Line 133: | Line 133: | ||
===Fog=== | ===Fog=== | ||
− | {{Fixbox|description=Disable | + | {{Fixbox|description=Disable fog|fix= |
Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | ||
<pre> | <pre> | ||
Line 142: | Line 142: | ||
===Chromatic aberration=== | ===Chromatic aberration=== | ||
− | {{Fixbox|description=Disable | + | {{Fixbox|description=Disable chromatic aberration|fix= |
Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | ||
<pre> | <pre> | ||
Line 166: | Line 166: | ||
===Lens flare=== | ===Lens flare=== | ||
− | {{Fixbox|description=Disable lens | + | {{Fixbox|description=Disable lens flares|fix= |
Using [[#Permanent console variable (cvar) changes|the guide below]], modify {{File|Engine.ini}} to include the following lines: | Using [[#Permanent console variable (cvar) changes|the guide below]], modify {{File|Engine.ini}} to include the following lines: | ||
<pre> | <pre> | ||
Line 180: | Line 180: | ||
r.MotionBlurQuality=0 | r.MotionBlurQuality=0 | ||
</pre>}} | </pre>}} | ||
+ | |||
+ | ===Vignette=== | ||
+ | {{Fixbox|description=Disable Vignette|ref=|fix= | ||
+ | Using [[#Permanent console variable (cvar) changes|the guide below]], modify {{File|Engine.ini}} to include the following lines: | ||
+ | <pre> | ||
+ | [SystemSettings] | ||
+ | r.Tonemapper.Quality=1 | ||
+ | </pre> | ||
+ | * 0 = Use Legacy tonemapper. | ||
+ | * 1 = Use ACES tonemapper.<ref>{{Refurl|url=https://docs.unrealengine.com/4.27/en-US/RenderingAndGraphics/PostProcessEffects/ColorGrading/|title=ACES Tonemapper|date=2022-08-16}}</ref> | ||
+ | * 2 = Use ACES tonemapper and vignette. | ||
+ | }} | ||
===Temporal Super Resolution=== | ===Temporal Super Resolution=== | ||
Line 207: | Line 219: | ||
r.ScreenPercentage=75 | r.ScreenPercentage=75 | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
Line 230: | Line 230: | ||
</pre>}} | </pre>}} | ||
===Controller analog stick options=== | ===Controller analog stick options=== | ||
− | {{Fixbox|description=Change sensitivity, deadzone | + | {{Fixbox|description=Change sensitivity, deadzone and inversion|fix= |
Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Input.ini}} to include these lines: | Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Input.ini}} to include these lines: | ||
<pre> | <pre> | ||
Line 239: | Line 239: | ||
AxisConfig=(AxisKeyName="Gamepad_RightY",AxisProperties=(DeadZone=0.250000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False)) | AxisConfig=(AxisKeyName="Gamepad_RightY",AxisProperties=(DeadZone=0.250000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False)) | ||
</pre> | </pre> | ||
− | + | }} | |
==Issues fixed== | ==Issues fixed== | ||
Line 247: | Line 247: | ||
{{--}}Using DXVK reduces your average FPS by 10% to 20%. | {{--}}Using DXVK reduces your average FPS by 10% to 20%. | ||
− | === | + | ===Ghosting from TAA=== |
− | {{ | + | {{ii}}Increasing the value for the parameter below can reduce ghosting from TAA. A recommended value range is <code>0.08</code> to <code>0.5</code>. The default is <code>0.04</code>. Higher values reduces ghosting at the risk of more jitter (aliasing). |
− | + | {{Fixbox|description=Reduce ghosting|fix= | |
− | |||
− | |||
− | {{Fixbox|description= | ||
Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | Using [[#Permanent console variable (cvar) changes|the guide below]], change {{File|Engine.ini}} to include these lines: | ||
<pre> | <pre> | ||
− | r.TemporalAACurrentFrameWeight=0 | + | r.TemporalAACurrentFrameWeight=0.08 |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
}} | }} | ||
− | === | + | ===Blurry image at native resolution=== |
− | {{ii}} | + | {{ii}} For some games, using a DPI higher than 100% can cause the image to appear blurry. |
{{mm}} For example, on a 3840x2160 monitor with 150% DPI scaling set, 2560x1440 will be used instead, as 3840 / 1.5 (150%) = 2560 and 2160 / 1.5 (150%) = 1440. | {{mm}} For example, on a 3840x2160 monitor with 150% DPI scaling set, 2560x1440 will be used instead, as 3840 / 1.5 (150%) = 2560 and 2160 / 1.5 (150%) = 1440. | ||
+ | {{++}} Newer versions of Unreal Engine 4 handle DPI automatically. | ||
− | {{Fixbox|description=Allow a game to use the native resolution | + | {{Fixbox|description=Allow a game to use the native resolution|fix= |
− | # Locate the main game executable | + | # Locate the main game executable. |
− | |||
# Right-click on the executable and select '''Properties'''. | # Right-click on the executable and select '''Properties'''. | ||
# Navigate to the '''Compatibility''' tab and click on '''Change high DPI settings'''. | # Navigate to the '''Compatibility''' tab and click on '''Change high DPI settings'''. | ||
Line 287: | Line 268: | ||
#* '''[x]''' Override high DPI scaling behavior. | #* '''[x]''' Override high DPI scaling behavior. | ||
#* Scaling performed by: <code>Application</code> | #* Scaling performed by: <code>Application</code> | ||
− | # Click on '''OK''' | + | # Click on '''OK'''. |
− | |||
}} | }} | ||
===SteamVR starts despite the game not using HMD devices=== | ===SteamVR starts despite the game not using HMD devices=== | ||
{{Fixbox|description=Start the game with {{code|-nohmd}} [[Glossary:Command line arguments|parameter]].|ref=<ref>{{Refcheck|user=Suicide machine|date=2021-07-30}}</ref><ref>{{Refurl|url=https://answers.unrealengine.com/questions/1021190/stopping-game-from-launching-in-vr.html?sort=oldest|title=Stopping game from launching in VR|date=2021-07-30}}</ref>}} | {{Fixbox|description=Start the game with {{code|-nohmd}} [[Glossary:Command line arguments|parameter]].|ref=<ref>{{Refcheck|user=Suicide machine|date=2021-07-30}}</ref><ref>{{Refurl|url=https://answers.unrealengine.com/questions/1021190/stopping-game-from-launching-in-vr.html?sort=oldest|title=Stopping game from launching in VR|date=2021-07-30}}</ref>}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
===Enable developer console=== | ===Enable developer console=== | ||
− | + | See [https://framedsc.com/GeneralGuides/universal_ue4_consoleunlocker.htm Universal Unreal Engine 4 Unlocker]. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Permanent console variable (cvar) changes=== | ===Permanent console variable (cvar) changes=== | ||
− | {{ii}} | + | {{ii}} Unreal Engine 4 reads console variables from a config file. |
− | {{--}} | + | {{--}} The method it uses may not be obvious. Editing files such as <code>Scalability.ini</code> could result in values being ignored. |
− | {{++}} Entering cvars into the Engine.ini file instead should ensure the value changes will take place. | + | {{++}} Entering cvars into the <code>Engine.ini</code> file instead should ensure the value changes will take place. |
− | {{Fixbox|description=Add | + | {{Fixbox|description=Add console variables to the Engine.ini file|fix= |
− | |||
# Open the <code>Engine.ini</code> file inside the games config folder in a text editor. | # Open the <code>Engine.ini</code> file inside the games config folder in a text editor. | ||
# If the file does not have a <code>[SystemSettings]</code> section, add one to the bottom. | # If the file does not have a <code>[SystemSettings]</code> section, add one to the bottom. | ||
− | # Inside that section, add | + | # Inside that section, add your parameters. Example: <code>r.MaxAnisotropy=16</code> |
+ | # You can also add comments like so: <code>r.MaxAnisotropy=16 ;This is my comment</code> | ||
# Save the file. | # Save the file. | ||
'''Notes''' | '''Notes''' | ||
− | {{ii}} Values set with this method should usually override any value set elsewhere, however, some games might store values inside | + | {{ii}} Values set with this method should usually override any value set elsewhere, however, some games might store values inside the savefile, which may override them when the save is loaded - the only workaround for these kind of games is to set the value [[#Enable developer console|through the developer console]] after loading the save and hope that the modified value may be written to the savefile. |
− | {{ii}} The game may rewrite this file when exiting, usually removing any empty lines and lines containing only comments - any custom cvars should still be saved, though the file can be set as "read-only" if this | + | {{ii}} The game may rewrite this file when exiting, usually removing any empty lines and lines containing only comments - any custom cvars should still be saved, though the file can be set as "read-only" if this isn't desired. |
{{ii}} Changes to the games config files should be made while it is not running. As previously mentioned, the game may overwrite the file when exiting. | {{ii}} Changes to the games config files should be made while it is not running. As previously mentioned, the game may overwrite the file when exiting. | ||
{{ii}} Unreal Engine 4 uses a hierarchical configuration scheme (on top of the multiple configuration categories previously mentioned), meaning that there can be multiple versions of (e.g.) Engine.ini found in different places, some of which may be prefixed with 'Default', 'Base', or 'Windows'. In general, it is best to edit the config file in the user configuration directory, as this should take priority over all others and work even if the game ships with encrypted config files. The file is usually located in <code>{{P|localappdata}}\<Game>\Saved\Config\</code>. | {{ii}} Unreal Engine 4 uses a hierarchical configuration scheme (on top of the multiple configuration categories previously mentioned), meaning that there can be multiple versions of (e.g.) Engine.ini found in different places, some of which may be prefixed with 'Default', 'Base', or 'Windows'. In general, it is best to edit the config file in the user configuration directory, as this should take priority over all others and work even if the game ships with encrypted config files. The file is usually located in <code>{{P|localappdata}}\<Game>\Saved\Config\</code>. | ||
}} | }} | ||
− | ===[https://www.epicgames.com/store/browse?sortBy=relevance&sortDir=DESC&category=Editor&count=40&start=0 | + | ===[https://www.epicgames.com/store/browse?sortBy=relevance&sortDir=DESC&category=Editor&count=40&start=0 Official modding tools]=== |
{{++}} Customized versions of the Unreal Editor for creating custom maps and mods for select UE4 games can be found on the [[Epic Games Store]]. | {{++}} Customized versions of the Unreal Editor for creating custom maps and mods for select UE4 games can be found on the [[Epic Games Store]]. | ||
Revision as of 11:36, 9 November 2022
Developers | |
---|---|
Epic Games | |
Website | |
https://www.unrealengine.com/ https://github.com/EpicGames |
|
First release date | |
March 2014 | |
Predecessor | |
Unreal Engine 3 | |
Successor | |
Unreal Engine 5 | |
Key points
- Unreal Engine 4 is used by over 800 games.
Video
Multi-monitor
See WideScreen Gaming Forum and Flawless Widescreen
Ultra-widescreen
See WideScreen Gaming Forum and Flawless Widescreen
High dynamic range (HDR)
See Special K and Windows Auto HDR
Exclusive fullscreen
Exclusive fullscreen |
---|
Change [/Script/Engine.GameUserSettings] FullscreenMode=0 LastConfirmedFullscreenMode=0 PreferredFullscreenMode=0 |
Borderless fullscreen windowed
Borderless fullscreen |
---|
Change [/Script/Engine.GameUserSettings] FullscreenMode=1 LastConfirmedFullscreenMode=1 PreferredFullscreenMode=1 |
Anti-aliasing (AA)
Disable anti-aliasing |
---|
Using the guide below, modify [SystemSettings] r.PostProcessAAQuality=0 |
FXAA
Enable FXAA |
---|
Using the guide below, modify [SystemSettings] r.PostProcessAAQuality=2 |
Temporal anti-aliasing (TAA)
Enable Temporal anti-aliasing (TAA) |
---|
Using the guide below, modify [SystemSettings] r.PostProcessAAQuality=4 |
Sharpen
Enable and adjust image sharpening |
---|
Using the guide below, modify [SystemSettings] r.Tonemapper.Sharpen=1 |
Anisotropic filtering (AF)
Set anisotropic filtering to the highest quality |
---|
Using the guide below, modify [SystemSettings] r.MaxAnisotropy=16 |
Vertical sync (Vsync)
Disable V-Sync |
---|
Using the guide below, change [SystemSettings] r.VSync=0 |
Frame rate limit
Set a custom frame rate limit |
---|
Change [/Script/Engine.GameUserSettings] FrameRateLimit=120 |
Ambient occlusion
Disable ambient occlusion |
---|
Using the guide below, change [SystemSettings] r.AmbientOcclusionLevels=0 |
Bloom
Disable bloom |
---|
Using the guide below, change [SystemSettings] r.BloomQuality=0 |
Screen space reflections
Disable screen space reflections |
---|
Using the guide below, change [SystemSettings] r.SSR=0 |
Fog
Disable fog |
---|
Using the guide below, change [SystemSettings] r.Fog=0 r.VolumetricFog=0 |
Chromatic aberration
Disable chromatic aberration |
---|
Using the guide below, change [SystemSettings] r.SceneColorFringeQuality=0 |
Depth of field
Disable depth of field |
---|
Using the guide below, modify [SystemSettings] r.DepthOfFieldQuality=0 |
Film grain
Disable film grain |
---|
Using the guide below, modify [SystemSettings] r.Tonemapper.GrainQuantization=0 |
Lens flare
Disable lens flares |
---|
Using the guide below, modify [SystemSettings] r.LensFlareQuality=0 |
Motion blur
Disable motion blur |
---|
Using the guide below, modify [SystemSettings] r.MotionBlurQuality=0 |
Vignette
Disable Vignette |
---|
Using the guide below, modify [SystemSettings] r.Tonemapper.Quality=1
|
Temporal Super Resolution
- Unreal Engine 4.19 added support for temporal AA upsampling GEN 4.[2]
- See the official engine documentation for more details.
Enable temporal AA upsampling (TAAU) GEN 4 |
---|
Using the guide below, modify [SystemSettings] r.PostProcessAAQuality=4 r.TemporalAA.Upsampling=1 r.TemporalAA.Algorithm=0 r.ScreenPercentage=75 |
- Unreal Engine 4.26 added support for temporal AA upsampling GEN 5.[3]
- Works similar to AMD FSR 2.0
Enable temporal AA upsampling (TAAU) GEN 5 |
---|
Using the guide below, modify [SystemSettings] r.PostProcessAAQuality=4 r.TemporalAA.Upsampling=1 r.TemporalAA.Algorithm=1 r.ScreenPercentage=75 |
Input
Mouse smoothing
Disable mouse smoothing |
---|
Using the guide below, change [/Script/Engine.InputSettings] bEnableMouseSmoothing=False |
Controller analog stick options
Change sensitivity, deadzone and inversion |
---|
Using the guide below, change [/script/engine.inputsettings] AxisConfig=(AxisKeyName="Gamepad_LeftX",AxisProperties=(DeadZone=0.250000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False)) AxisConfig=(AxisKeyName="Gamepad_LeftY",AxisProperties=(DeadZone=0.250000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False)) AxisConfig=(AxisKeyName="Gamepad_RightX",AxisProperties=(DeadZone=0.250000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False)) AxisConfig=(AxisKeyName="Gamepad_RightY",AxisProperties=(DeadZone=0.250000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False)) |
Issues fixed
Stuttering
- Shader compilation causes stuttering. Some games, like Borderlands 3 for example, store shaders only temporarly, which means, you will stutter at the same place every time the level is loaded. Unfortunately there is no cvar to tweak this behavior.
- DXVK-async can remove shader compilation stutters.
- Using DXVK reduces your average FPS by 10% to 20%.
Ghosting from TAA
- Increasing the value for the parameter below can reduce ghosting from TAA. A recommended value range is
0.08
to0.5
. The default is0.04
. Higher values reduces ghosting at the risk of more jitter (aliasing).
Reduce ghosting |
---|
Using the guide below, change r.TemporalAACurrentFrameWeight=0.08 |
Blurry image at native resolution
- For some games, using a DPI higher than 100% can cause the image to appear blurry.
- For example, on a 3840x2160 monitor with 150% DPI scaling set, 2560x1440 will be used instead, as 3840 / 1.5 (150%) = 2560 and 2160 / 1.5 (150%) = 1440.
- Newer versions of Unreal Engine 4 handle DPI automatically.
Allow a game to use the native resolution |
---|
|
SteamVR starts despite the game not using HMD devices
Start the game with -nohmd parameter.[4][5]
|
---|
Enable developer console
See Universal Unreal Engine 4 Unlocker.
Permanent console variable (cvar) changes
- Unreal Engine 4 reads console variables from a config file.
- The method it uses may not be obvious. Editing files such as
Scalability.ini
could result in values being ignored. - Entering cvars into the
Engine.ini
file instead should ensure the value changes will take place.
Add console variables to the Engine.ini file |
---|
Notes
|
Official modding tools
- Customized versions of the Unreal Editor for creating custom maps and mods for select UE4 games can be found on the Epic Games Store.
Games
References
- ↑ ACES Tonemapper - last accessed on 2022-08-16
- ↑ TAAU GEN 4 - last accessed on 2022-07-05
- ↑ TAAU GEN 5 - last accessed on 2022-07-05
- ↑ Verified by User:Suicide machine on 2021-07-30
- ↑ Stopping game from launching in VR - last accessed on 2021-07-30