Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: [0.8a-RC19] Linux Ubuntu 17.04 Rendering Error when Full Screen  (Read 2539 times)

SagaciousZed

  • Ensign
  • *
  • Posts: 4
    • View Profile

The best way to describe the behavior I am seeing is z-fighting with the star sector background and the rest of the drawn elements including the UI. Once it begins to happen it does not stop until I restart the game. Not sure if this happens in the intergalactic travel, and this doesn't appear to happen with the combat background.

Resolution doesn't seem to affect it, tried it with 1600x900, 1920x1080, and 3200x1800

I've tried other Java games like Minecraft and Rise to Ruin and was unable to observe similar behavior.

Using the 64bit Java 7 because that was easier than hunting down the required 32-bit libraries for Ubuntu 17.04
Running GNOME Shell 3.24.1

Running on an Intel i7-7500U and Intel HD Graphics 620 with driver version i915.

first 50 lines of the log
Spoiler
0    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Starting Starsector 0.8a-RC19 launcher
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Running in $HOME/Downloads/starsector
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - OS: Linux 4.10.0-21-generic
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Java version: 1.7.0_80 (64-bit)
32   [main] INFO  com.fs.starfarer.settings.StarfarerSettings  - Loading settings
39   [main] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [ABSOLUTE_AND_CWD: null (data/config/settings.json)]
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 320x240, 120Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 400x300, 113Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 400x300, 121Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 512x384, 120Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 576x432, 120Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 640x480, 120Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 640x480, 60Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 640x512, 120Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 680x384, 120Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 700x525, 120Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 720x450, 120Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 800x512, 120Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 800x600, 56Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 800x600, 120Hz, 24bpp
205  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 800x600, 60Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 840x525, 120Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 896x672, 120Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 928x696, 120Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 960x720, 120Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 960x600, 120Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 960x540, 120Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1024x768, 120Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1024x768, 60Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1152x864, 60Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1280x1024, 60Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1280x960, 60Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1360x768, 60Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1400x1050, 60Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1440x900, 60Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1600x1200, 60Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1600x900, 60Hz, 24bpp
206  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1600x1024, 60Hz, 24bpp
207  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1680x1050, 60Hz, 24bpp
207  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1792x1344, 60Hz, 24bpp
207  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1856x1392, 60Hz, 24bpp
207  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1920x1200, 60Hz, 24bpp
207  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1920x1080, 60Hz, 24bpp
207  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1920x1440, 60Hz, 24bpp
207  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 2048x1536, 60Hz, 24bpp
207  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 3200x1800, 48Hz, 24bpp
207  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 3200x1800, 60Hz, 24bpp
207  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Assuming native monitor resolution is 3200x1800
274  [Thread-3] INFO  com.fs.graphics.for  - Using refresh rate:60
499  [Thread-3] INFO  com.fs.graphics.TextureLoader  - Cleaned buffer for texture graphics/ui/launcher_bg.jpg (using cast)
[close]
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24103
    • View Profile
Re: [0.8a-RC19] Linux Ubuntu 17.04 Rendering Error when Full Screen
« Reply #1 on: May 20, 2017, 01:39:27 PM »

Hmm - what screen does this happen on? Also, is a newer version of your graphics drivers available? If so, updating to it might fix it.

A more detailed description would be helpful, too - how severe is what's happening? I.E. is it an element or two blinking occasionally, or everything blinking all the time, something in between, or something else entirely?
Logged

SagaciousZed

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: [0.8a-RC19] Linux Ubuntu 17.04 Rendering Error when Full Screen
« Reply #2 on: May 20, 2017, 02:11:47 PM »

It's happening on screen 1, the only screen I have attached. If you mean game screen, its when traveling through the a star system.

The game renders normally until the background starts flickering and bleeding into all elements on the screen. Distorting and flickering on screen along a horizontal band. Basically the game becomes unplayable because it is just a black streak along a portion of the screen.

I just learned from pure accident that an alt+tab will fix it and the game will render normally again. Since X seems to be doing some screen resizing when I take a screenshot using print screen. Still trying to capture it, but might just resort to using a phone picture  :-\

As for drivers, it doesn't appear an update is available as of this writing but one may be available in a few weeks. According to https://01.org/linuxgraphics/forum/graphics-update-tool-discussions/instructions-compiling-and-installing-update-tool-ubuntu-17
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24103
    • View Profile
Re: [0.8a-RC19] Linux Ubuntu 17.04 Rendering Error when Full Screen
« Reply #3 on: May 20, 2017, 02:20:02 PM »

Yeah, I meant "game screen".

This almost sounds like a vsync-related issue - not exactly like the normal tearing you'd expect with vsync being off, but something similar-ish nonetheless. Are there any graphics driver settings related to vsync that you can tweak?

By default, the game runs with vsync on. You can turn it off by editing data/config/settings.json and setting vsync to false - this may help as well.
Logged

SagaciousZed

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: [0.8a-RC19] Linux Ubuntu 17.04 Rendering Error when Full Screen
« Reply #4 on: May 20, 2017, 02:53:26 PM »

I've turned vsync in the game off but that didn't seem to have any effect. But then I turned off vsync for compiz and it seems to be working better without alt+tabing EDIT: nevermind.

Looking into if Gnome or some Xorg setting I can tweak, but so far nothing obvious.
« Last Edit: May 20, 2017, 02:57:00 PM by SagaciousZed »
Logged

moozaad

  • Ensign
  • *
  • Posts: 13
    • View Profile
Re: [0.8a-RC19] Linux Ubuntu 17.04 Rendering Error when Full Screen
« Reply #5 on: May 29, 2017, 07:03:28 AM »

Try the latest lwjgl https://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.9.3/

I found it fixed some screen related issues on tumbleweed. Not exactly the same but worth a try.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24103
    • View Profile
Re: [0.8a-RC19] Linux Ubuntu 17.04 Rendering Error when Full Screen
« Reply #6 on: May 29, 2017, 09:25:36 AM »

(Btw - updated to LWJGL 2.9.3 for the next release, assuming it doesn't break anything on OS X, which I haven't tested it on yet.)
Logged