Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Window fullscreen issue.  (Read 2522 times)

0 Members and 3 Guests are viewing this topic.

GSerum

  • Newbie
  • *
  • Posts: 8
    • View Profile
Window fullscreen issue.
« 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

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

So that basically takes the screen height being too high out of the picture as cause.
« Last Edit: May 31, 2018, 03:13:27 pm by GSerum »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Window fullscreen issue.
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

GSerum

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Window fullscreen issue.
« Reply #2 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Window fullscreen issue.
« Reply #3 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?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

GSerum

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Window fullscreen issue.
« Reply #4 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])
 
« Last Edit: May 31, 2018, 04:31:49 pm by GSerum »

GSerum

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Window fullscreen issue.
« Reply #5 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Window fullscreen issue.
« Reply #6 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?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

GSerum

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Window fullscreen issue.
« Reply #7 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?

GSerum

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Window fullscreen issue.
« Reply #8 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.

 

anything