defold / defold

Defold is a completely free to use game engine for development of desktop, mobile and web games.
https://www.defold.com
Other
4.3k stars 305 forks source link

Consider adding project option to toggle applications dpiAwareness #7258

Open Jrayp opened 1 year ago

Jrayp commented 1 year ago

Is your feature request related to a problem? Please describe (REQUIRED): Yes. Windows dpi settings automatically scale defold applications based on the scaling option in the windows display settings. Currently, if I am on a larger monitor and set my dpi scaling to say 125%, then my windowed defold application will be scaled by that amount. For most applications this makes sense, however it is standard practice (and possible with Unity as a benchmark, if that matters) to ignore this functionality for things like games. A user that selects a resolution in a game, expects the game to run in that resolution - not a blurry scaled version of it

Describe the solution you'd like (REQUIRED): Toggable option in project settings that toggles the dpiAware manifest setting as explained here when the application is built. I'm not sure about how defold works at a lower level, and I've never dealt with things at this layer myself, so I am not sure how feasible this is, but I'd assume something like this is possible.

Describe alternatives you've considered (REQUIRED): N/A

Additional context (OPTIONAL): N/A

britzl commented 1 year ago

https://learn.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process#setting-default-awareness-programmatically