Black bars that go away when window is moved - how to prevent bars or redraw window?

Version info

v4.6.stable.mono.arch_linux
Compatibility renderer
Low processor mode
Project Settings > General > Display > Window > Scale Mode: fractional, but also occurs on integer
Happens on debug and release builds
I resize the 2nd scene in code:
var size = DisplayServer.ScreenGetSize(); DisplayServer.WindowSetSize(new Vector2I( Convert.ToInt32(size.X * 0.60), Convert.ToInt32(size.Y * 0.12 * ProgressBarManager.Count) ));

Question

imageHere’s the first scene:

Here’s my scene transition:

Here’s how it looks like on screen:

Here’s how it looks when I grab the window and move it even one pixel. This is exactly what I want the window to look like:

What I’ve Tried

  • Changing the scale mode from fractional to integer
  • Using code to moving the window one pixel to the left after _ready()
  • RenderingServer.ForceDraw()

I am pretty sure from other black bar questions that I’ve read that I am causing this by resizing the window in code, and the black bars are appearing as the window/UI is trying to scale in response. What can I do to either prevent the black bars from showing up or force a window redraw in code to make them instantly go away?

First of all, check the problem on another system.

1 Like

Thanks tomcat! I’ll ask some friends to try in the next few days and let you know what I find. I appreciate your suggestion.

@tomcat You were correct! Some friends tried my app on Windows yesterday and did not have the issue. This is a Linux display issue.

1 Like