Thread history
Viewing a history listing
Time | User | Activity | Comment |
---|---|---|---|
15:01, 22 March 2019 | Beaming (talk | contribs) | New thread created | |
21:19, 22 March 2019 | MultiplyByZer0 (talk | contribs) | New reply created | (Reply to Robocode on HiDPI displays) |
12:32, 16 January 2023 | Xor (talk | contribs) | New reply created | (Reply to Robocode on HiDPI displays) |
Hi I am trying to use my HiDPI laptop for robocode. But everything is super small. Is there a trick to scale everything up within Java? I am running it all on Linux.
I tried '-Dsun.java2d.uiScale=2' trick but it seems to have no effect on openjdk.
You are not the first to experience this problem.
Robocode 1.9.3.0 and its predecessors produced visual glitches with DPI scaling enabled (Bug-394). Fnl's workaround for this in 1.9.3.1 was to have Robocode disable DPI scaling entirely. Unfortunately, this causes the UI to appear very small.
The ideal solution, of course, would be to have Robocode support HiDPI properly. But that would mean changing a significant amount of UI code to take DPI into account, as well as modifying the graphics system so that the battle view can be scaled up arbitrarily high without losing quality. That would take a lot of work.