[GH-ISSUE #1007] Linux Wayland: white overlay over the game (works with XWayland or after a resize) #276

Closed
opened 2026-11-02 15:37:50 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @DerRehberg on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1007

env -u WAYLAND_DISPLAY horizon-client
as general please?

Grok says in German: "Beim Resize wird die wgpu-Surface neu konfiguriert (surface.configure). Danach ist der Swapchain wieder gültig. Ohne Resize bleibt die alte, kaputte Surface (besonders nach Monitor-Wechsel oder bei unterschiedlichen Scale-Faktoren)."

Originally created by @DerRehberg on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1007 env -u WAYLAND_DISPLAY horizon-client as general please? Grok says in German: "Beim Resize wird die wgpu-Surface neu konfiguriert (surface.configure). Danach ist der Swapchain wieder gültig. Ohne Resize bleibt die alte, kaputte Surface (besonders nach Monitor-Wechsel oder bei unterschiedlichen Scale-Faktoren)."
bsakaguchi 2026-11-02 15:37:50 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@DerRehberg commented on GitHub (Oct 19, 2026):

Also please remove leaves between leaves not there because of performance, then i'll say it: Use Alias System from where a rust command matches a java command because you probably got a rewrote pathway and then convert where something connects from fabric to rust from there on cause concept backwards reverse engineering for mod convert or write a direct only alias system for fabric mods.

<!-- gh-comment-id:6265890642 --> @DerRehberg commented on GitHub (Oct 19, 2026): Also please remove leaves between leaves not there because of performance, then i'll say it: Use Alias System from where a rust command matches a java command because you probably got a rewrote pathway and then convert where something connects from fabric to rust from there on cause concept backwards reverse engineering for mod convert or write a direct only alias system for fabric mods.
Author
Owner

@DerRehberg commented on GitHub (Oct 19, 2026):

I figure you guys maybe use Opus 5.5, just instead of looking at each command look for where's the connection to original minecraft or fabric

<!-- gh-comment-id:6265906767 --> @DerRehberg commented on GitHub (Oct 19, 2026): I figure you guys maybe use Opus 5.5, just instead of looking at each command look for where's the connection to original minecraft or fabric
Author
Owner

@ludovic111 commented on GitHub (Oct 19, 2026):

🤖 Agent: thanks for the report and the workaround. Running with env -u WAYLAND_DISPLAY horizon-client (XWayland) avoids it, and resizing the window clears it, so the window surface probably isn't reconfigured when Wayland changes it (scale factor, monitor change). The fix belongs in the game, not a launch flag: reconfigure the surface whenever it goes stale or the scale changes, and fall back to X11 automatically only if that isn't enough. It's queued for the next bug-fix batch.

To reproduce it, could you add: your desktop/compositor (GNOME, KDE, Hyprland, Sway…), GPU and driver, Horizon version (title screen corner), whether you use fractional scaling or several monitors, and a screenshot if you can?

The other ideas (leaf culling, mapping Fabric mod calls onto Horizon) are better as separate issues so they don't get lost here.

<!-- gh-comment-id:6266273646 --> @ludovic111 commented on GitHub (Oct 19, 2026): 🤖 Agent: thanks for the report and the workaround. Running with `env -u WAYLAND_DISPLAY horizon-client` (XWayland) avoids it, and resizing the window clears it, so the window surface probably isn't reconfigured when Wayland changes it (scale factor, monitor change). The fix belongs in the game, not a launch flag: reconfigure the surface whenever it goes stale or the scale changes, and fall back to X11 automatically only if that isn't enough. It's queued for the next bug-fix batch. To reproduce it, could you add: your desktop/compositor (GNOME, KDE, Hyprland, Sway…), GPU and driver, Horizon version (title screen corner), whether you use fractional scaling or several monitors, and a screenshot if you can? The other ideas (leaf culling, mapping Fabric mod calls onto Horizon) are better as separate issues so they don't get lost here.
Author
Owner

@DerRehberg commented on GitHub (Oct 19, 2026):

Hyprland
The leaves thing that is doesn't render nothing between leaves if leaves could just be added as option too.

<!-- gh-comment-id:6270390289 --> @DerRehberg commented on GitHub (Oct 19, 2026): Hyprland The leaves thing that is doesn't render nothing between leaves if leaves could just be added as option too.
Author
Owner

@DerRehberg commented on GitHub (Oct 19, 2026):

Also Alias till decode what comes at like from

<!-- gh-comment-id:6270400299 --> @DerRehberg commented on GitHub (Oct 19, 2026): Also Alias till decode what comes at like from
Author
Owner

@ludovic111 commented on GitHub (Oct 21, 2026):

🤖 Agent: #1075 (merged) changes the Wayland surface format: Horizon no longer picks the fp16 ExtendedSrgb surface that RADV lists first. That may also be behind this white overlay. It ships in the next release; @DerRehberg, if you build from main, please check whether the overlay is gone.

<!-- gh-comment-id:6314864789 --> @ludovic111 commented on GitHub (Oct 21, 2026): 🤖 Agent: #1075 (merged) changes the Wayland surface format: Horizon no longer picks the fp16 ExtendedSrgb surface that RADV lists first. That may also be behind this white overlay. It ships in the next release; @DerRehberg, if you build from main, please check whether the overlay is gone.
Author
Owner

@ludovic111 commented on GitHub (Oct 21, 2026):

Claimed by ludovic on Discord (GitHub: ludovic111), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1007).

<!-- gh-comment-id:6319364069 --> @ludovic111 commented on GitHub (Oct 21, 2026): Claimed by `ludovic` on Discord (GitHub: `ludovic111`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1007). <!-- kira:work -->
Author
Owner

@Online5277 commented on GitHub (Oct 21, 2026):

@DerRehberg Leaf Culling is an option in advanced video settings. It gives a measurable performance boost on my end. If you don't like it you can disable it.

<!-- gh-comment-id:6321013072 --> @Online5277 commented on GitHub (Oct 21, 2026): @DerRehberg Leaf Culling is an option in advanced video settings. It gives a measurable performance boost on my end. If you don't like it you can disable it.
Author
Owner

@ludovic111 commented on GitHub (Oct 22, 2026):

🤖 Agent: reproduced and explained in #1174. On a Wayland compositor with colour management, Mesa lists a 16-bit float surface first. Before #1075 Horizon picked it, and the compositor then read the game's colours as linear light, washing everything toward white. X11 has no such surface, which is why XWayland looked right. Reproduced on a real Intel GPU under weston: the old choice gives exactly that washed-out overlay, and main (with #1075) is correct, before and after a resize. #1174 adds a test so it can't come back. The fix reaches players with the next release (releases are paused for now). @DerRehberg, please check on Hyprland when it's out.

<!-- gh-comment-id:6334313678 --> @ludovic111 commented on GitHub (Oct 22, 2026): 🤖 Agent: reproduced and explained in #1174. On a Wayland compositor with colour management, Mesa lists a 16-bit float surface first. Before #1075 Horizon picked it, and the compositor then read the game's colours as linear light, washing everything toward white. X11 has no such surface, which is why XWayland looked right. Reproduced on a real Intel GPU under weston: the old choice gives exactly that washed-out overlay, and main (with #1075) is correct, before and after a resize. #1174 adds a test so it can't come back. The fix reaches players with the next release (releases are paused for now). @DerRehberg, please check on Hyprland when it's out.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#276
No description provided.