Adding console commands to .ini files?

Hi,

I have a couple of console commands that I use to improve the Temporal AA:

r.TemporalAACurrentFrameWeight 0.2 
r.TemporalAASamples 4
r.Tonemapper.Sharpen 0.8

I’d like the project to start with these (and compile with them) every time instead of having to input them into the console. Can I place them into one of the engine configs, or perhaps execute them in the level blueprint?

Thanks :wink:

1 Like

Hey, shure,… simple Thing… Check this post out →

3 Likes

Thanks, that worked. :wink:

For future readers:

  1. Navigate to projectfolder\Config\DefaultEngine.ini
  2. If the following line isn’t present, add it:

[/Script/Engine.RendererSettings]

  1. Under it, add your console commands.
r.TemporalAACurrentFrameWeight=0.2 
r.TemporalAASamples=4
r.Tonemapper.Sharpen=0.8

Remember to add an equals sign (=) where you would write a space in the console, eg. FrameWeight 0.2 → FrameWeight=0.2, otherwise it won’t work. :wink:

16 Likes

aaawww man thanks so much this - the ‘=’ was the issue in my case :rofl:

1 Like

@mathos You’re welcome, reader from the future. :wink:

2 Likes

I just wanted to post here for posterity. If you are wanting to add console commands to you DefaultEngine.ini file, you should be doing this in a category called [SystemSettings] at the bottom of your ini file.

Although the [/Script/Engine.RendererSettings] is filled with r. commands, these are commands that are accessible from within the ProjectSettings of the editor. If you add console commands that aren’t accessible through the ProjectSettings to this section, they won’t do anything.

Here’s an example of my SystemSettings:

[SystemSettings]
GameAudio.Volume=1.0
GameAudio.MusicVolume=0.5
GameAudio.SFXVolume=1.0
r.HeterogeneousVolumes.MaxStepCount=512
r.HeterogeneousVolumes.DownsampleFactor=0