Game Embedding feature affecting my exports.

Godot Version

Godot 4.4 .NET

Question

With the newly-added Game Embedding feature, I noticed that I can no longer change resolutions and window mode at runtime. I fixed it with setting “Project Settings - General - Display - Window - Mode” to “Windowed”, which effectively make my game open in windowed mode by default.

I understand that this is due to some feature limits, but here is the problem: if I switch the setting I mentioned above back to “Exclusive Fullscreen” (which I expect my exported game to run at) and then export the build - the exported .exe build would perform as if it is still in Game Embedding window. Even though the Game Embedding toolbar did NOT appear, I still CANNOT change resolutions and window mode. Now I am forced to export my build in windowed mode (which fixed the issue). Is there another way to fix this?

Edit: After further testing, I found out that this only happened when I set Viewport Width and Height to exactly 1920*1080 in Project Settings.

Looks like a bug. You should open an issue then.

Done. Game Embedding feature affecting my exports

1 Like

How did you determine it behaves as if it is still in the Game Embedding window? What happened vs what did you expect to happen?

Here is what I noticed:

  • Editor play with “Exclusive Fullscreen” Window Mode and “Embed Game on Next Play” checked - cannot change resolution and the screen flickered when I tried
  • Editor play with “Exclusive Fullscreen” Window Mode and “Embed Game on Next Play” unchecked - cannot change resolution and the screen flickered when I tried
  • Editor play with “Windowed” Window Mode and “Embed Game on Next Play” checked - cannot change resolution and the screen flickered when I tried
  • Editor play with “Windowed” Window Mode and “Embed Game on Next Play” unchecked - worked just fine
  • Export with “Exclusive Fullscreen” Window Mode - cannot change resolution and the screen flickered when I tried
  • Export with “Windowed” Window Mode - worked just fine

All these flickering behavior mentioned above looked the same, so I came to the conclusion that the Game Embed feature must be affecting my export in some weird ways.

If you wanna find out what kind of behavior I was talking about, you can go to this github issue link and try the zipped project yourself.

1 Like