External Publication
Visit Post

jME 3.10.0-alpha5

jMonkeyEngine Hub May 29, 2026
Source

If anyone is interested in trying the new supersampling/HiDPI support, I suggest enabling it. It can make your game look much better on high-DPI screens, and if you use supersampling, you will also get antialiasing across the entire scene, even on non-HiDPI displays.

To test HiDPI support:

settings.setDisplayScaleMode(AppSettings.DISPLAY_SCALE_DPI_AWARE);

To test HiDPI + supersampling:

float scale = 1.2f; // You can also try 2f
settings.setDisplayScaleMode(scale);

The main thing to watch out for is UI scaling. If your game assumes that the camera dimensions are the same as the framebuffer dimensions, or if you scale things relative to the framebuffer, you may see incorrect scaling or offsets after enabling these settings. This happens because the framebuffer can be larger than the camera viewport (This is easier to debug by settingsettings.setDisplayScaleMode(2f);, since it forces a notably larger framebuffer even if your display is not HiDPI.)

The fix is usually straightforward: base your UI/layout sizes on the camera dimensions instead of the framebuffer dimensions.


Please let me if you run into any issues, and if you think we should enable this behavior by default.

Discussion in the ATmosphere

Loading comments...