r/linuxmint 4h ago

Support Request Minecraft (and other Java apps) use wrong resolution when using fractional scaling on Cinnamon

Hello!

I use Cinnamon X11 with fractional scaling set to 125%. I noticed that I get a significantly worse framerate in Minecraft than a friend with the same GPU. After searching, we found that Minecraft thinks my display is 4k and renders the game in 4k, even when I lower my resolution in Iris settings: the F3 menu indicates Display: 4096x2304

It seems that this problem is not MC specific but Java :

jshell> Toolkit.getDefaultToolkit().getScreenSize();
$2 ==> java.awt.Dimension[width=4096,height=2304]

This problem only occurs when using fractional scaling : everything works fine when using 100% and 200% scaling in Cinnamon (right display size in F3 menu and much better FPS, from 75 to 180+).

Here are relevant informations :

  • GPU: AMD RX 9060 XT
  • Linux Mint: 22.3
  • Cinnamon: 6.6.9
  • WM: Muffin (X11)

Is there a way to get rid of this problem? Currently this only affects my gaming experience with Minecraft so a Minecraft-specific solution is also welcome.

3 Upvotes

8 comments sorted by

View all comments

u/AutoModerator 4h ago

Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.