# I Set adaptToDeviceRatio to true, but it is useless

**URL:** <https://forum.babylonjs.com/t/i-set-adapttodeviceratio-to-true-but-it-is-useless/15254>\
**Category:** Questions\
**Tags:** material\
**Created:** [October 29, 2020, 2:55am UTC](https://forum.babylonjs.com/t/i-set-adapttodeviceratio-to-true-but-it-is-useless/15254 "2020-10-29T02:55:49Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [October 30, 2020, 10:45am UTC](https://forum.babylonjs.com/t/i-set-adapttodeviceratio-to-true-but-it-is-useless/15254/7 "2020-10-30T10:45:56Z")

</div>

XR is bound to the HUD’s resolution, but you can achieve the same effect as hardware scaling if you define the framebuffer scaling when initializing your session. These are the default values - [Babylon.js/webXRManagedOutputCanvas.ts at master · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/blob/master/src/XR/webXRManagedOutputCanvas.ts#L38)

You can use it this way - [https://www.babylonjs-playground.com/#5EQA9Y#3](https://www.babylonjs-playground.com/#5EQA9Y#3)

---

_[View the full topic](https://forum.babylonjs.com/t/i-set-adapttodeviceratio-to-true-but-it-is-useless/15254)._
