# Console Commands / Command Line Arguments

## Overview

There are many properties that you can change in Unreal by passing console commands or by adding command line arguments to .exe files.&#x20;

If you are in Unreal Engine, at the bottom left of the screen you can enter these commands where it says "Enter Console Command"&#x20;

<figure><img src="https://4002977754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrQtfp6C58EggcONhzAMx%2Fuploads%2Fw3IU1oFSuV7iLjH3opDc%2Fimage.png?alt=media&#x26;token=c8f6214a-5755-41cb-8c30-ae877a50a29c" alt=""><figcaption></figcaption></figure>

If you are simulating the game, or have already packaged a project, you can press the \` key on the keyboard (same place as \~) and it will prompt you.

These commands are only active until you close the project or game. When you re-open your project, it will be set back to whatever the default values are. If you want the changes to persist, you can change them in their .ini files. &#x20;

Console commands and the .ini files are formatted a little differently, for example in the console you would enter "sg.ResolutionQuality 50" (notice the space between the world and the number)

<figure><img src="https://4002977754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrQtfp6C58EggcONhzAMx%2Fuploads%2FtYaigZTa0VQzTnRtBhm4%2Fimage.png?alt=media&#x26;token=3cf6be09-73e3-46b2-8f7b-829c01120de8" alt=""><figcaption></figcaption></figure>

In the .ini file, you would enter the same command "sg.ResolutionQuality=50" (notice the equal sign between the word and the number).

<figure><img src="https://4002977754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrQtfp6C58EggcONhzAMx%2Fuploads%2FKkvb3bSm9tbkPtwjmbpX%2Fimage.png?alt=media&#x26;token=87b5a51d-1f9d-4168-a0d0-42b0a3d6008e" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The commands are not case-sensitive, but it's good practice to match what Unreal Engine does.
{% endhint %}

cvars = Console Variables

## Output Log

#### Unreal Engine

#### Packaged Project

In a packaged project, the way to see the output log is to create a shortcut and pass the cvar "-log"

<figure><img src="https://4002977754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrQtfp6C58EggcONhzAMx%2Fuploads%2FiV92ndXZh4jIvRkYNolN%2Fimage.png?alt=media&#x26;token=e0a94167-4e72-41cb-b27f-8c751a044660" alt=""><figcaption></figcaption></figure>

## Location of .ini files

#### Unreal Engine

#### Packaged Project

\[Path to where you put the packaged file]&#x20;

\Windows\LightSail\_VP\_Scenes\Saved\Config\Windows\GameUserSettings.ini

The GameUserSettings.ini file is the main file to edit.&#x20;

## These settings sped up frame rate

r.Shadow\.Virtual.ResolutionLodBiasDirection -1  (Default was 0, 5 was also good)

## Change Scalability Settings

In the GameUserSettings.ini file, you can paste this text in there, and adjust them as needed.&#x20;

\[ScalabilityGroups] \
sg.ResolutionQuality=100 \
sg.ViewDistanceQuality=0 \
sg.AntiAliasingQuality=1 sg.ShadowQuality=1 \
sg.PostProcessQuality=1 \
sg.TextureQuality=1 \
sg.EffectsQuality=0 sg.FoliageQuality=0 \
sg.GlobalIlluminationQuality=3 \
sg.ReflectionQuality=3 \
sg.ShadingQuality=3

\[/Script/Engine.GameUserSettings] \
bUseVSync=False \
bUseDynamicResolution=False ResolutionSizeX=1920 \
ResolutionSizeY=1200 \
LastUserConfirmedResolutionSizeX=1920 LastUserConfirmedResolutionSizeY=1200 \
WindowPosX=-1 \
WindowPosY=-1 \
FullscreenMode=1 LastConfirmedFullscreenMode=1 \
PreferredFullscreenMode=1 \
Version=5 \
AudioQualityLevel=0 LastConfirmedAudioQualityLevel=0 \
FrameRateLimit=23.976000 \
DesiredScreenWidth=1280 bUseDesiredScreenHeight=False \
DesiredScreenHeight=720 LastUserConfirmedDesiredScreenWidth=1280 \
LastUserConfirmedDesiredScreenHeight=720 LastRecommendedScreenWidth=-1.000000 \
LastRecommendedScreenHeight=-1.000000 LastCPUBenchmarkResult=-1.000000 \
LastGPUBenchmarkResult=-1.000000 \
LastGPUBenchmarkMultiplier=1.000000\
bUseHDRDisplayOutput=False \
HDRDisplayOutputNits=1000


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assimilate.gitbook.io/live-fx-documentation/unreal-engine/unreal-optimization/console-commands-command-line-arguments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
