minecraft-wayland icon indicating copy to clipboard operation
minecraft-wayland copied to clipboard

HIDPI?

Open mattfbacon opened this issue 3 years ago • 4 comments

This repository is very helpful for getting Minecraft working on a basic level. However, on my 4K display, Minecraft only runs at 1080p and upscales resulting in pixelation.

Is there a solution for this? Does Minecraft always run in XWayland?

mattfbacon avatar Nov 01 '22 22:11 mattfbacon

After installing xorg-xwayland-hidpi-xprop and running xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2, Minecraft runs pixel-perfect, but halves its size within the window (halves each dimension to be specific).

Minecraft halved

mattfbacon avatar Nov 01 '22 22:11 mattfbacon

Workaround: use env -u DISPLAY as wrapper command, and downgrade LWJGL from 3.3.1 to 3.2.2.

mattfbacon avatar Nov 25 '22 23:11 mattfbacon

As of 1.19.3 this workaround no longer works as Minecraft relies on methods added in 3.3.x.

mattfbacon avatar Jan 03 '23 17:01 mattfbacon

Update: using https://github.com/mattfbacon/glfw-wayland-minecraft-git (which is basically the same as this repo, but based on the latest git HEAD of glfw) along with env -u DISPLAY as the wrapper command is successful!

4K resolution in the F3 debug menu

mattfbacon avatar Jun 15 '23 18:06 mattfbacon