Skip to content

Instantly share code, notes, and snippets.

@WinterSnowfall
Last active May 13, 2025 21:46
Show Gist options
  • Save WinterSnowfall/1883e39a55de3876eb992c091c4af895 to your computer and use it in GitHub Desktop.
Save WinterSnowfall/1883e39a55de3876eb992c091c4af895 to your computer and use it in GitHub Desktop.
Unreal Engine 2/3/4 shader compilation on load (not on demand)
#the following settings will alleviate or outright prevent shader stutter
#with the downside of taking up more GPU memory, hence it may not benefit
#GPUs with insufficient VRAM
#for UE2 engine titles edit the main config ini file
#(e.g. Unreal2.ini) to add/change the below lines:
[D3DDrv.D3DRenderDevice]
UsePrecaching=True
AvoidHitches=True
#for UE3 engine titles add/change the following line in
#..\Documents\..\Config\<GameName>Engine.ini
[Engine.ISVHacks]
bInitializeShadersOnDemand=False
#for UE4 engine titles add the following in
#...\AppData\Local\<GameName>\Saved\Config\WindowsNoEditor\Engine.ini
[/script/engine.renderersettings]
r.CreateShadersOnLoad=1
niagara.CreateShadersOnLoad=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment