Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

All the examples have window problems #492

Closed
ghost opened this issue Nov 20, 2017 · 10 comments
Closed

All the examples have window problems #492

ghost opened this issue Nov 20, 2017 · 10 comments
Labels
diff: normal Achievable by an reasonable experienced developer. If new to Amethyst, may need some guidance. team: rendering type: bug Something is not working as it should.

Comments

@ghost
Copy link

ghost commented Nov 20, 2017

Window content is not resized when resizing the window, and the border is drawn wrong.
I'm using Ubuntu 17.10 with Mesa drivers.

I believe the issue is with Glutin. I'm having the same problem with Piston, which goes away if I use SDL2.
screenshot from 2017-11-19 18-40-57

@Aceeri Aceeri added team: rendering type: bug Something is not working as it should. diff: normal Achievable by an reasonable experienced developer. If new to Amethyst, may need some guidance. note: help wanted labels Nov 20, 2017
@Xaeroxe
Copy link
Member

Xaeroxe commented Nov 20, 2017

I will certainly attempt to reproduce this. I've been a pretty regular Linux Mint user myself and haven't observed this. That's some strange behavior.

@ghost
Copy link
Author

ghost commented Nov 22, 2017

Thanks for the tip about Mint. The best I can do with Ubuntu 17.10 is use Piston/SDL. It seems like the current consensus is that Glutin is the best hope for the future? I'm new to Rust, out of curiosity, is there much interest in SDL?

@Xaeroxe
Copy link
Member

Xaeroxe commented Nov 22, 2017

@ddewert

Is there much interest in SDL?

Depends on who you ask. I think the general consensus right now is that SDL2 is much more powerful and reliable, but also flawed and imperfect in many ways that we can't correct in C/C++.

@Binero
Copy link
Contributor

Binero commented Nov 22, 2017

This is a Wayland issue, also exists in GFX. gfx-rs/gfx#1217

@gotocoffee1
Copy link

std::env::set_var("WINIT_UNIX_BACKEND", "x11"); fixes it for me, I also had to set multisampling to 0

@Xaeroxe
Copy link
Member

Xaeroxe commented Nov 28, 2017

I'm closing this since there isn't really anything in this code base responsible for this.

@Xaeroxe Xaeroxe closed this as completed Nov 28, 2017
@ghost
Copy link
Author

ghost commented Nov 28, 2017

This was helpful:
rust-windowing/winit#306

@ghost
Copy link
Author

ghost commented Nov 28, 2017

So for those completely new to amethyst and Rust (as I am) who are also enjoying Ubuntu 17.10:
To make the sphere example work, for instance:

Change the line in examples/sphere/main.rs that says:

fn run() -> Result<(), amethyst::Error> {

to:

fn run() -> Result<(), amethyst::Error> {
    std::env::set_var("WINIT_UNIX_BACKEND", "x11");

Find the line in examples/sphere/resources/display_config.ron that says multisampling: 1 and change that to multisampling: 0

This works for me.

@Rhuagh
Copy link
Member

Rhuagh commented Nov 28, 2017

Why not just do WINIT_UNIX_BACKEND=x11 cargo run..

@ghost
Copy link
Author

ghost commented Nov 28, 2017

Ha!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
diff: normal Achievable by an reasonable experienced developer. If new to Amethyst, may need some guidance. team: rendering type: bug Something is not working as it should.
Projects
None yet
Development

No branches or pull requests

5 participants