PistonDevelopers / conrod

An easy-to-use, 2D GUI library written entirely in Rust.
Other
3.35k stars 297 forks source link

Offset rendering and weird scaling on Linux #1120

Closed FauxFaux closed 6 years ago

FauxFaux commented 6 years ago

Since 339b0c658801e02f44d3be59c24d70560e762488 ("update glium and winit"), on Ubuntu Artful (16.10) with nvidia-384, things render off-centre and generally pretty messed up. Here's the image and file_navigator examples:

image

Note the huge black bar, as well as the text and hover highlight not being aligned.

I assume, based on the commit, that it's a problem with glium, but I'm as yet unable to pin it down. I only started playing with the graphics ecosystem a few hours ago.

daboross commented 6 years ago

Are you using wayland or xorg? I've had different linux rendering issues with each of them in glium. I don't know anything about the issue you're having, but more information on how to reproduce it could possibly help.

FauxFaux commented 6 years ago

I've tried Gnome and i3; both do the same. The binary nvidia driver means no wayland, as it's blacklisted due to being crap.

As it's graphics, I don't really have a good way to narrow it down; VMs probably won't help? Not a problem with the GPU as it happens in Windows. Maybe I should dig through the winit commits. :(

daboross commented 6 years ago

Darn, ok. I've been trying out different DPI settings on my linux machine with both wayland and xorg, but to no avail - I haven't found any configuration on my machine to caused this. I'm also running Ubuntu 16.10, but with Intel integrated graphics.

FauxFaux commented 6 years ago

There's some progress on the gluim issue, which might be the same bug. Linked above, but clearer:

https://github.com/glium/glium/issues/1657