# In which ini file and how to setup default vr.PixelDensity?

**URL:** <https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710>\
**Category:** XR Development\
**Tags:** Oculus, unreal-engine, pixel, question\
**Created:** [November 19, 2020, 9:04am UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710 "2020-11-19T09:04:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Si1weri](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Si1weri](https://forums.unrealengine.com/u/Si1weri)\
**Post date:** [November 19, 2020, 9:04am UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/1 "2020-11-19T09:04:12Z")

</div>

I’m trying to find out how to set the vr.PixelDensity in ini file. I’m building for Oculus Quest and I can’t find the right spot/ini to where to enter this, as every time I build and run the apk, the vr.PixelDensity seems to always reset to 1. I would need it to be set differently.

---

<div class="post-metadata">

**Author:** ![BigBankHankster](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bigbankhankster/32/1021263_2.png) [@BigBankHankster](https://forums.unrealengine.com/u/BigBankHankster)\
**Post date:** [May 7, 2022, 6:04pm UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/2 "2022-05-07T18:04:49Z")

</div>

Did you ever find an answer to this issue?

---

<div class="post-metadata">

**Author:** ![Bevman00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bevman00](https://forums.unrealengine.com/u/Bevman00)\
**Post date:** [May 10, 2022, 1:09am UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/3 "2022-05-10T01:09:12Z")

</div>

You can use a ‘Execute Console Command’ node at begin play in your level blueprint, for an easy workaround.

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [May 12, 2022, 4:28pm UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/4 "2022-05-12T16:28:35Z")

</div>

vr.PixelDensity is currently not working with OpenXR. The “fix” (it’s more of a new implementation as things have changed w. OpenXR) is unfortunately not able to make a hotfix for 5.0, but it should make it to Main soon, and ship w. 5.1 on the Launcher.

---

<div class="post-metadata">

**Author:** ![Louspirit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/louspirit/32/1223530_2.png) [@Louspirit](https://forums.unrealengine.com/u/Louspirit)\
**Post date:** [April 11, 2023, 2:19pm UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/5 "2023-04-11T14:19:51Z")

</div>

Can you confirm that

> vr.PixelDensity

is now working with OpenXR (any runtime)?

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [April 11, 2023, 5:02pm UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/6 "2023-04-11T17:02:37Z")

</div>

Confirmed!

---

<div class="post-metadata">

**Author:** ![fuzzy3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fuzzy3d/32/779941_2.png) [@fuzzy3d](https://forums.unrealengine.com/u/fuzzy3d)\
**Post date:** [November 28, 2023, 6:10am UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/7 "2023-11-28T06:10:58Z")

</div>

Hi, I’m new here and would like to set vr.PixelDensity for Meta Quest (Android mode). Now I know it should work, but I have no idea where the value belongs. According to the “XR Best Practices” documentation, it should be in the “Config/DefaultEngine.ini file under SystemSettings”. But there is no “SystemSettings” section. Please help.

UE 5.3.2., plugin Meta XR 1.91.0

Edit: This is Bing answer:  
" [According to my research](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710)[1](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710)[2](https://forums.unrealengine.com/t/where-should-i-set-vr-pixeldensity-in-ini-file/153525)[3](https://forums.unrealengine.com/t/how-to-fix-fps-with-lights-and-shadows-as-bottlenecks-vr/418441), the vr.PixelDensity variable should be placed in the [SystemSettings] section of the DefaultEngine.ini file. If this section is missing in the file, you can add it at the end of the file. The vr.PixelDensity variable should not be anywhere else in the file, because that could cause conflicts or invalid values. I hope that answers your question. 😊"

Edit: Not working.

---

<div class="post-metadata">

**Author:** ![Rectus\_SA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rectus\_SA](https://forums.unrealengine.com/u/Rectus_SA)\
**Post date:** [November 28, 2023, 10:28am UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/8 "2023-11-28T10:28:55Z")

</div>

It should go under: `[/Script/Engine.RendererSettings]`

If it doesn’t exist in the file, you will have to add it.

---

<div class="post-metadata">

**Author:** ![fuzzy3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fuzzy3d/32/779941_2.png) [@fuzzy3d](https://forums.unrealengine.com/u/fuzzy3d)\
**Post date:** [November 28, 2023, 2:28pm UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/9 "2023-11-28T14:28:10Z")

</div>

Are you sure? Value 1.5 and I see no difference.

---

<div class="post-metadata">

**Author:** ![Rectus\_SA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rectus\_SA](https://forums.unrealengine.com/u/Rectus_SA)\
**Post date:** [November 28, 2023, 3:04pm UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/10 "2023-11-28T15:04:43Z")

</div>

Tested it in 5.3 and it works (on PC with SteamVR). However, the default player pawn blueprint in the VR Template has code in BeginPlay that sets it to 1, so make sure that is removed.

The OpenXR plugin will also limit the maximum pixel density to the maximum value the active OpenXR runtime allows, so might be worth checking that the runtime isn’t limiting it.

---

<div class="post-metadata">

**Author:** ![fuzzy3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fuzzy3d/32/779941_2.png) [@fuzzy3d](https://forums.unrealengine.com/u/fuzzy3d)\
**Post date:** [November 28, 2023, 6:14pm UTC](https://forums.unrealengine.com/t/in-which-ini-file-and-how-to-setup-default-vr-pixeldensity/474710/11 "2023-11-28T18:14:32Z")

</div>

Thank you for the info. I am a complete beginner in UE,

I have a working project for Quest 3 in Android mod so I differ from your usage but I will look into the other settings you mention. Thanks!

Edit: Finally! Now I understand why I have no reaction .ini file editing…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/f/d3f0f5f56f06bebbf0135b5b6874f660cf459ad3.png)

You saved my day sir!

By the way, pixel density ++ works great and pulls a large number of polygons (with high quality) even on Android Quest 3.
