SFML community forums

Help => Graphics => Topic started by: GSerum on May 31, 2018, 03:11:51 pm

Title: Window fullscreen issue.
Post by: GSerum on May 31, 2018, 03:11:51 pm
For some reason our screen looks like it's shifted downwards by about 180 pixels or so.

Image: https://imgur.com/slhCOwy (https://imgur.com/slhCOwy)

Here's how we create our window:

ContextSettings settings;
settings.antialiasingLevel = 4;

RenderWindow window(VideoMode(static_cast<unsigned int>(Variables::PIXEL_WIDTH),
                                  static_cast<unsigned int>(Variables::PIXEL_HEIGHT)),
                        Variables::GAME_NAME, sf::Style::Fullscreen, settings);

Furthermore we never edit the window.

Where the Pixel width and Pixel height are simply the screen resolution (1920x1200).

When setting the pixel height to a lower value, the screen looks like this (1920x900): https://imgur.com/a/cD34FiR (https://imgur.com/a/cD34FiR)

So that basically takes the screen height being too high out of the picture as cause.
Title: Re: Window fullscreen issue.
Post by: eXpl0it3r on May 31, 2018, 03:40:01 pm
Are you running on an Intel GPU? What's your Intel GPU driver version? Try updating to the latest.
Title: Re: Window fullscreen issue.
Post by: GSerum on May 31, 2018, 04:03:53 pm
Are you running on an Intel GPU? What's your Intel GPU driver version? Try updating to the latest.

All laptops that run this have the same issue, all NVidia drivers.
Title: Re: Window fullscreen issue.
Post by: eXpl0it3r on May 31, 2018, 04:24:47 pm
But those laptops surely run dual-GPU. When you right click the application and select "Run with Nvidia GPU" do you still get the issue?
Title: Re: Window fullscreen issue.
Post by: GSerum on May 31, 2018, 04:26:55 pm
But those laptops surely run dual-GPU. When you right click the application and select "Run with Nvidia GPU" do you still get the issue?

We're running an sh script to run the game in CLion, when using:
lspci -v | grep VGA
In the command line, i get the following:

00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller: NVIDIA Corporation Device 13b6 (rev a2) (prog-if 00 [VGA controller])
 
Title: Re: Window fullscreen issue.
Post by: GSerum on May 31, 2018, 04:48:24 pm
But those laptops surely run dual-GPU. When you right click the application and select "Run with Nvidia GPU" do you still get the issue?

So 2 of my team members don't even own an Intel driver, and only have NVidia drivers, yet the issue is also present on their machines. The other 3 all use hybrid drivers
Title: Re: Window fullscreen issue.
Post by: eXpl0it3r on May 31, 2018, 05:00:42 pm
Since you seem to run on a Linux, what distro are you using with what window manager (usually belongs in the first post ;) )?

So did you check on which GPU the application runs on?
Title: Re: Window fullscreen issue.
Post by: GSerum on May 31, 2018, 05:07:04 pm
Since you seem to run on a Linux, what distro are you using with what window manager (usually belongs in the first post ;) )?

So did you check on which GPU the application runs on?

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial

I'm using GNome but not everyone in the team is, some use the default window manager.

I did check which GPU drivers were active, and could only find that the laptop was set in hybrid mode, and thus using both?
Title: Re: Window fullscreen issue.
Post by: GSerum on May 31, 2018, 05:14:56 pm
Update:
We have 1 laptop with Gnome and hybrid drivers -> Black bar is present
2 laptops with Gnome and only NVidia drivers -> Black bar is present on only 1 machine
1 laptop without Gnome and hybrid drivers -> No black bar

I currently have no idea what causes this.