# Resolution

## Start Resolution

To set the starting resolution of your application or to have a dynamically controlled resolution, you will need to add the following settings ​to your project.​ ​

* Add these two resolution console commands to your project. (We recommend adding them to an ‘**Execute Console Command**’ blueprint node in the **Event Graph** of your **​Level Blueprint**)

```
PixelStreaming.WebRTC.DisableResolutionChange 0​ 
r.setres 1920x1080w
```

![(Example of the console commands inside a 'Execute Console Command' Blueprint Node)](/files/H4jhVGnFakO998dKg5s4)

{% hint style="warning" %} <mark style="color:orange;">**Warning:**</mark> The <mark style="color:green;">'</mark>**PixelStreaming.WebRTC.DisableResolutionChange 0**' console command is only relevant for UE4 (in UE5.1 the resolution changes work automatically)\
\
Please be aware that UE5.03 doesn't support this resolution change as the command is missing (Epic are aware and fixed this feature in 5.1)&#x20;
{% endhint %}

{% hint style="info" %}
Note: The 'setres' console command is not necessary when streaming as Arcware Cloud forces FullHD anyway, but it can however be useful when you test the application on your local machine, to view it in the same resolution as it will be shown whilst streaming. \
\
Our recommended value for the resolution console command is **1920x1080w**\ <br>
{% endhint %}

## Dynamic Resolution

If you have successfully completed the steps in... ['**01.2. Pixel Streaming Input'**](/unreal-engine-setup/set-up-pixel-streaming-in-your-own-project/core-settings/pixel-streaming-input-json-messages.md) ... your Unreal Project should now be ready to receive the **json descriptor input** needed for dynamically changing the resolution via Console Commands.&#x20;

<figure><img src="/files/3zqVAh2DSkwiXKhTkZLe" alt=""><figcaption></figcaption></figure>

The json descriptor input will be sent from the **Web frontend** to your **Player Controller** in Unreal Engine. Everytime the user resizes the web browser window a json descriptor will be sent to Unreal Engine with a new corresponding resolution command.&#x20;

{% hint style="info" %}
Here is an example of how the json descriptor will be written when its sent from the frontend to your Unreal Engine application...\
\
emitUIInteraction({ Console: '`r.setres 1920x1080w'` })
{% endhint %}


---

# 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://docs.arcware.cloud/unreal-engine-setup/set-up-pixel-streaming-in-your-own-project/core-settings/resolution.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.
