Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Popped Windows Glitched Graphically (Fixed) #72944

Closed
Lazy-Rabbit-2001 opened this issue Feb 9, 2023 · 15 comments

Comments

@Lazy-Rabbit-2001
Copy link
Contributor

Lazy-Rabbit-2001 commented Feb 9, 2023

Godot version

since 4.0

System information

Windows 11, GLES3, x86_64, AMD APU A4-7210 with AMD R3 Graphics and AMD R5 M330
AMD Radeon Software Info:

  • Software version: 2022.0802.1058.19750
  • Driver version: 21.09.13.02-220802a-382934C-RadeonSoftware
  • 2D Driver version: 8.1.1.1634
  • D3D version: 9.14.10.01494
  • OpenGL version: 29.20.11000.14830
  • OpenGL Details:
    image
    image
    image
    image

Issue description

image
As the screenshots display, when I enter in Godot 4 in compatibility mode and pop a window or menu in the project manager, the popped show with glitches, which is annoying. Though the computer can run the manager in Vulkan mode (in which everything runs as usual and no glitches with graphics), it would break the entering of those who runs with GLES3 mode
I hope it could be fixed in 4.2 or future versions. :)

Steps to reproduce

  1. Have a computer(a laptop is recommended) with the same APU mentioned in "System information"
  2. Open Godot 4
  3. In the project manager, click any button

Minimal reproduction project

N/A

@Lazy-Rabbit-2001
Copy link
Contributor Author

I think it can be regarded as OpenGL Render problem like this:
#66458

@Lazy-Rabbit-2001
Copy link
Contributor Author

Lazy-Rabbit-2001 commented Apr 21, 2023

I saw the bug got fixed in 4.1 dev1
but the project manager didn't, but anyways thanks for your hard work :D
I reopened this issue only for project manager

@Calinou Calinou modified the milestones: 4.x, 4.1 Apr 21, 2023
@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title AMD R3 Graphics Running Godot 4 in Compatibility Mode Get Popped Menus and Windows Glitched AMD R3 Graphics Running Godot 4 in Compatibility Mode Get Project Manager Glitched Graphically Apr 22, 2023
@clayjohn clayjohn modified the milestones: 4.1, 4.x Jun 13, 2023
@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title AMD R3 Graphics Running Godot 4 in Compatibility Mode Get Project Manager Glitched Graphically AMD R3 Graphics Running Godot 4 in Compatibility Mode Gets Project Manager Glitched Graphically Jul 7, 2023
@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title AMD R3 Graphics Running Godot 4 in Compatibility Mode Gets Project Manager Glitched Graphically AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Project Manager Glitched Graphically Jul 21, 2023
@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Project Manager Glitched Graphically AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Popped Windows Glitched Graphically Jul 21, 2023
@Lazy-Rabbit-2001
Copy link
Contributor Author

Lazy-Rabbit-2001 commented Jul 21, 2023

#79168 mentioned the crux of the bug: When a computer with an old AMD graphic card runs Godot 4 with single_window_mode false, the bug happens in the editor, too.
I think the project editor might uses separate window as default option, and that maybe adding a "project setting" with "single_window_mode" option could be better...
A temporary fix is to create a desktop shortcut and then set the param of target with "--single-window", which fixes the problem

So it shows that old AMD drivers doesn't support separate window well...

@Calinou
Copy link
Member

Calinou commented Jul 21, 2023

I think the project editor might uses separate window as default option, and that maybe adding a "project setting" with "single_window_mode" option could be better...

I think this should be forced automatically based on the GPU model name, rather than as a project setting. We can't assume project developers are aware of this particular bug.

#72831 could perhaps fix this issue as well, as AMD's Direct3D drivers are much better than the OpenGL ones on Windows.

@Lazy-Rabbit-2001
Copy link
Contributor Author

I think the project editor might uses separate window as default option, and that maybe adding a "project setting" with "single_window_mode" option could be better...

I think this should be forced automatically based on the GPU model name, rather than as a project setting. We can't assume project developers are aware of this particular bug.

#72831 could perhaps fix this issue as well, as AMD's Direct3D drivers are much better than the OpenGL ones on Windows.

Sorry, I didn't know there is an extra step to open ANGLE and thought it would automatically set on, and it fixes the problem now, thanks for your hard work and contribution to Godot :D

@akien-mga
Copy link
Member

Can you confirm whether Godot 4.2 dev 6 (which is the first build to include ANGLE) works for you out of the box?
https://godotengine.org/article/dev-snapshot-godot-4-2-dev-6/

If not, we may want to keep this issue open and figure out a way to default to ANGLE instead of OpenGL drivers on systems like yours.

@akien-mga akien-mga modified the milestones: 4.x, 4.2 Oct 9, 2023
@Lazy-Rabbit-2001
Copy link
Contributor Author

Can you confirm whether Godot 4.2 dev 6 (which is the first build to include ANGLE) works for you out of the box? https://godotengine.org/article/dev-snapshot-godot-4-2-dev-6/

If not, we may want to keep this issue open and figure out a way to default to ANGLE instead of OpenGL drivers on systems like yours.

I am using 4.2 dev6 and have opened d3d11(ANGLE) render mode, and it does fix the problem. Very useful, except the first time i used this mode, it took much more time to load the editor than in normal opengl mode

@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Popped Windows Glitched Graphically AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Popped Windows Glitched Graphically(Fixed) Oct 9, 2023
@akien-mga
Copy link
Member

Did you have to specify --rendering-driver opengl3_angle on the command line, or did it select ANGLE automatically?

@Lazy-Rabbit-2001
Copy link
Contributor Author

Lazy-Rabbit-2001 commented Oct 9, 2023

Did you have to specify --rendering-driver opengl3_angle on the command line, or did it select ANGLE automatically?

opps, I input the command because it didn't trigger the mode on automatically...

@akien-mga
Copy link
Member

@bruvzg @clayjohn Do you think it's possible for us to figure out heuristics for when to default to ANGLE?

@bruvzg
Copy link
Member

bruvzg commented Oct 9, 2023

Do you think it's possible for us to figure out heuristics for when to default to ANGLE?

If the driver reports that 3.3+ is supported (which seems to be true in this case), I guess the only way to do it would be to have a list of unsupported devices. It is already supported, but currently the list is empty by default, and I'm not sure how to populate it.

GLOBAL_DEF_RST(PropertyInfo(Variant::ARRAY, "rendering/gl_compatibility/force_angle_on_devices", PROPERTY_HINT_ARRAY_TYPE, vformat("%s/%s:%s", Variant::DICTIONARY, PROPERTY_HINT_NONE, String())), Array());

@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Popped Windows Glitched Graphically(Fixed) AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Popped Windows Glitched Graphically(Fixed, but needs manually fix) Oct 9, 2023
@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Popped Windows Glitched Graphically(Fixed, but needs manually fix) AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Popped Windows Glitched Graphically(Fixed, but needs manual fix) Oct 9, 2023
@Zireael07
Copy link
Contributor

Kinda sorta related to that old bug/issue proposal about having a blacklist of badly behaving GPUs?

@Lazy-Rabbit-2001
Copy link
Contributor Author

Lazy-Rabbit-2001 commented Nov 6, 2023

closed for the bug can be fixed by opengl3-angle(d3d11), and the extending bug of not automatically switching to ANGLE when opening from .exe without any parameters will be mentioned in a new issue post #84517
Anyways, thanks for your hard work on Godot

@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Popped Windows Glitched Graphically(Fixed, but needs manual fix) AMD R3 Graphics Running Godot 4 in Compatibility Mode with Single Window Mode Off Gets Popped Windows Glitched Graphically (Fixed) Nov 6, 2023
@Lazy-Rabbit-2001
Copy link
Contributor Author

@bruvzg @clayjohn Do you think it's possible for us to figure out heuristics for when to default to ANGLE?

#84517 Here is a new post for you to talk about the rest issue of this topic

@PixelTeix
Copy link

closed for the bug can be fixed by opengl3-angle(d3d11), and the extending bug of not automatically switching to ANGLE when opening from .exe without any parameters will be mentioned in a new issue post #84517 Anyways, thanks for your hard work on Godot

Hi. I am having this problem. Can you explain me how to fix it? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants