# Adding console commands to .ini files?

**URL:** <https://forums.unrealengine.com/t/adding-console-commands-to-ini-files/267859>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine\
**Created:** [December 23, 2021, 12:14am UTC](https://forums.unrealengine.com/t/adding-console-commands-to-ini-files/267859 "2021-12-23T00:14:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![VelikyPanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/velikypanda/32/1008648_2.png) [@VelikyPanda](https://forums.unrealengine.com/u/VelikyPanda)\
**Post date:** [December 23, 2021, 12:14am UTC](https://forums.unrealengine.com/t/adding-console-commands-to-ini-files/267859/1 "2021-12-23T00:14:00Z")

</div>

Hi,

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

```auto
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 😉

---

<div class="post-metadata">

**Author:** ![panPvonB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/panpvonb/32/247413_2.png) [@panPvonB](https://forums.unrealengine.com/u/panPvonB)\
**Post date:** [December 23, 2021, 10:30pm UTC](https://forums.unrealengine.com/t/adding-console-commands-to-ini-files/267859/2 "2021-12-23T22:30:14Z")

</div>

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

> [@Foliage with alpha cards casts dark shadows](https://forums.unrealengine.com/t/foliage-with-alpha-cards-casts-dark-shadows/266479/11):
>
> hm interesting, nice… this is a “Cvar” only (most of these console variables are not accsessible via checkboxes etc… they’re pure “commands”) But what you can do is… option one,… go to your Project folder via Win explorer… there you have a config folder, in it some .ini files… the one you want is the “DefaultEngine.ini” There you can type in these commands and set them to True/false or comment them out with a “;” See screenshot… Now everytime you start your project,… thes…

---

<div class="post-metadata">

**Author:** ![VelikyPanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/velikypanda/32/1008648_2.png) [@VelikyPanda](https://forums.unrealengine.com/u/VelikyPanda)\
**Post date:** [December 24, 2021, 9:26pm UTC](https://forums.unrealengine.com/t/adding-console-commands-to-ini-files/267859/3 "2021-12-24T21:26:11Z")

</div>

Thanks, that worked. 😉

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.

```auto
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. 😉

---

<div class="post-metadata">

**Author:** ![mathos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mathos](https://forums.unrealengine.com/u/mathos)\
**Post date:** [April 11, 2023, 9:41am UTC](https://forums.unrealengine.com/t/adding-console-commands-to-ini-files/267859/4 "2023-04-11T09:41:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![VelikyPanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/velikypanda/32/1008648_2.png) [@VelikyPanda](https://forums.unrealengine.com/u/VelikyPanda)\
**Post date:** [April 11, 2023, 8:04pm UTC](https://forums.unrealengine.com/t/adding-console-commands-to-ini-files/267859/5 "2023-04-11T20:04:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [November 24, 2025, 10:59am UTC](https://forums.unrealengine.com/t/adding-console-commands-to-ini-files/267859/6 "2025-11-24T10:59:43Z")

</div>

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`
