Blurry rendering in Windows build with display scaling > 100%

Hi everyone!

In the Windows build, if the display scaling is set to > 100% (e.g., 125% or 150%), everything becomes blurry. On Android and HTML5, everything renders sharply, with proper handling of virtual pixels, so this issue seems specific to Windows.

The allow-high-dpi="true" option is already set in the <window> tag of the project’s XML file, but the problem persists. I’ve also tried changing the renderer to both cairo and opengl, but neither solved the issue.

Given that the majority of modern Windows devices use scaling above 100% due to their high-resolution displays and relatively small physical screen sizes, this seems to be a common and widespread issue.

Is there a solution to this problem?

Thanks in advance for any advice!

Unfortunately, we don’t currently support allow-high-dpi=“true” on Windows (except in html5 running on Windows, of course). Until somewhat recently, SDL (a native C++ library that we use) didn’t support it. I think SDL may support Windows HiDPI in recent versions, but it requires some extra steps to enable, so someone needs to figure out how to do that. PRs welcome!