News for hackers. Stuff that matters.
Re:Making Your Game Go Fast by Asking Windows Nicely by johncolanduoni on Monday January 17, 2022 @06:08PM (#29972769)
If you’re DPI aware you should never size your elements by physical pixels, but many game UI elements like a HUD or very simple menus scale better using “percentage of screen dimension” or similar heuristics. Like using fixed device independent pixel sizes this system won’t cause the elements to look tiny on a HiDPI display, and it will generally do a better job on large screens that are usually far away from the user (e.g. TVs).

There are no comments on this comment yet.