minecraft-wayland
minecraft-wayland copied to clipboard
HIDPI?
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?
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).

Workaround: use env -u DISPLAY as wrapper command, and downgrade LWJGL from 3.3.1 to 3.2.2.
As of 1.19.3 this workaround no longer works as Minecraft relies on methods added in 3.3.x.
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!