Open ensisoft opened 2 years ago
Add support for high DPI display scaling.
What this means.
rendering resolution and render target size are no longer the same as the display/presentation size.
the display window can be scaled either manually or by the underlying platform.
the content rendered by the engine needs to be displayed with some scaling factor/mechanism
need engine config flags to define the setting for hdpi
need runtime game accessible way to access the hdpi display scale factor
need runtime mechanism for letting the game to adjust the hdpi display scale factor
Also applies to fullscreen not just windowed mode.
Currently the windows native game host application is DPI "unaware". When the application runs Windows does content scaling automatically (at least in the windowed mode).
https://learn.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows#display-scale-factor--dpi
Add support for high DPI display scaling.
What this means.
rendering resolution and render target size are no longer the same as the display/presentation size.
the display window can be scaled either manually or by the underlying platform.
the content rendered by the engine needs to be displayed with some scaling factor/mechanism
need engine config flags to define the setting for hdpi
need runtime game accessible way to access the hdpi display scale factor
need runtime mechanism for letting the game to adjust the hdpi display scale factor
Also applies to fullscreen not just windowed mode.