Robocode on HiDPI displays

Jump to navigation Jump to search

Robocode on HiDPI displays

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

 

Return to Thread:User talk:Beaming/Robocode on HiDPI displays.

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.

MultiplyByZer0 (talk)21:19, 22 March 2019

Only a few lines of code need to be changed. The glitch is caused by a bug, otherwise Java has already had perfect HiDPI support. See PR #62.

Xor (talk)12:32, 16 January 2023