123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|683|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> PC Gaming -> High DPI

Tue, 20 Dec 2022, 20:03
Kuron

HIGH DPI


For people developing windowed games for Windows, how are folks dealing with the variety of DPI settings in use today? What is the best way to make a game DPI aware?
Tue, 20 Dec 2022, 20:15
Jayenkai
It's frustratingly more and more convoluted these days. Not only is there resolution and screen size (if you can get access to that) but also Windows' display scaling, too.
In browser dev, you're at the mercy of a multitude of devices from small phones to even VR headsets trying to play your browser games!! And trying to glean the screen size from the browser...? You've no chance.

Honestly just make your font readable on a phone. If it's readable there, it oughta be ok everywhere else. (Screenshot your Windows games and slap it on your phone if need be.)
If you think you might then end up with too BIG of a font, maybe add an option to scale it.

-=-=-
''Load, Next List!''
Tue, 20 Dec 2022, 20:20
Kuron
Any games I do would be for Windows only, no browser and would simply run in a window instead of full screen. Although it is convoluted as hell for apps, I do understand the basics of dealing with it for an app, but a game is different and having to possible resize sprites and such. *sighs* Trying to avoid using DX or GL, simply because systems are so fast today and if you do not have a lot of moving sprites, it is unnecessary overhead and compatibility issues.