Page 1 of 1

OpenRA on Retina/HiDPI displays

Posted: Sat Dec 24, 2016 7:34 pm
by Sleipnir
I've put together a little holiday gift for folk running OpenRA on high resolution displays.
The following links contain a custom build of release-20161019 with high-resolution text support:Support on OSX and Windows is automatic. On Linux you must explicitly define an OPENRA_DISPLAY_SCALE environment variable with an appropriate value (e.g. 2).

Posted: Mon Jan 02, 2017 12:09 am
by AoAGeneral1
Finally got this installed on my friends computer. Thanks very much for putting this together!

Posted: Mon Jan 02, 2017 3:29 pm
by Fortnight
Nice work!

Posted: Mon Jan 02, 2017 8:25 pm
by noobmapmaker
Computer illiterate here.. what does it do?

Posted: Tue Jan 03, 2017 4:06 pm
by Moz
Computer screens (tablets, but also external displays and laptops these days) can have a resolution that is way higher than the tradional 100-150 ppi (pixels per inch) these days.

As a result, if you render OpenRA on a 4K sized display (3840 × 2160) on, say, a 19" screen, you get 231 ppi which is really high, hence the name HiDPI (or "Retina" because it is high enough that your eye cannot see/distinguish the pixels). All software that is designed for regular displays that we had for the past 8 years will look really really small on such displays.

(Another example is new phones that have Full HD (1920 x 1080) displays while 32" Full HD TVs are also still sold, amazing big difference in resolution but not in pixels.)

Hence, the OS compensates for that by using (amongst other things) a scaling factor, thus making things bigger again, while the higher resolution still offers for rendering with more detail. Browsers do this also, and I guess, so should game engines... :)

Thanks for the build pchote, will try it out soon once I get my HiDPI laptop and screen later on.

Posted: Wed Jan 04, 2017 9:27 am
by noobmapmaker
Thanks! I need such elaborate explanations to understand :lol:

Posted: Tue Feb 14, 2017 10:16 am
by Moz
The HiDPI scaling works fine for me. I have a resolution of 3200x1800 on 13.3", so that amounts to a DPI of 276.

I run OpenRA on X(Wayland) using a scaling factor of 1.7 which seems fine (fonts/UI elements not small but still provide more real-estate). I do get this error:

Code: Select all

Failed to initialize hardware cursors. Falling back to software cursors.
Error was: Failed to create hardware cursor `scroll-t` - Index was outside the bounds of the array.

Posted: Wed Feb 15, 2017 1:58 pm
by abcdefg30
This looks like a known error: OpenRA/OpenRA#10172 (although the message is slightly different).