Why does Unattended command line arg skip setting the app to high DPI awareness?

We have some performance automated testing that is trying to run our game at specific resolutions in order to generate consistent results, but we recently discovered that the game window seems sized incorrectly. After debugging we’ve found that while our app is set to DPI aware, when we run our automation with unattended to avoid dialogs blocking it, we end up getting the wrong sizes for the client area + window size on PC. We are thinking about just changing this code so it isn’t checking for unattended, but wanted to check if there was a good reason it was this way?

[Image Removed]

Thanks!

Steps to Reproduce

  • Make a high DPI awareness app
  • Run the app with -forceres -resx=<screen_res_x> -resy=<screen_res_y> -unattended on a monitor with text scale other than 100%
  • Observe created window size is larger than the screen

Hi Steve,

We recently added support for High DPI in unattended mode. You can check CL#43952992. It should be a fairly simple integration.

Regards,

Martin

Perfect, thank you!