Repository: godot
Issue: Wayland feels sluggish with Vulkan compared to OpenGL
Labels: bug,platform:linuxbsd,topic:porting,performance

### Tested versions

4.3

### System information

Godot v4.3.stable - Nobara Linux 40 (GNOME Edition) - Wayland - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3050 Ti Laptop GPU - 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz (8 Threads)

### Issue description

While Wayland feels fantastic in general for me on Linux, in Godot something has felt "off" ever since I've begun testing it. It's not _bad_, but it's not as smooth as the rest of my Gnome desktop experience.

Now I have some stats to back that up:

**Prefer Wayland Off**

```
eobet@surface:~/Downloads$ ./Godot_v4.3-stable_linux.x86_64 --print-fps flag: godot --print-fps ./shadertest2/project.godot
Godot Engine v4.3.stable.official.77dcf97d8 - https://godotengine.org
Vulkan 1.3.280 - Forward Mobile - Using Device #1: NVIDIA - NVIDIA GeForce RTX 3050 Ti Laptop GPU
Requested V-Sync mode: Enabled - FPS will likely be capped to the monitor refresh rate.
Editor FPS: 145 (6.89 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 140 (7.14 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 144 (6.94 mspf)
Editor FPS: 143 (6.99 mspf)
Editor FPS: 127 (7.87 mspf)
Editor FPS: 115 (8.69 mspf)
Editor FPS: 113 (8.84 mspf)
Editor FPS: 142 (7.04 mspf)
Editor FPS: 135 (7.40 mspf)
Editor FPS: 101 (9.90 mspf)
Editor FPS: 104 (9.61 mspf)
Editor FPS: 125 (8.00 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 143 (6.99 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 140 (7.14 mspf)
Editor FPS: 118 (8.47 mspf)
Editor FPS: 115 (8.69 mspf)
Editor FPS: 134 (7.46 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 138 (7.24 mspf)
Editor FPS: 142 (7.04 mspf)
Editor FPS: 128 (7.81 mspf)
Editor FPS: 97 (10.30 mspf)
Editor FPS: 105 (9.52 mspf)
Editor FPS: 109 (9.17 mspf)
Editor FPS: 139 (7.19 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 56 (17.85 mspf)
Editor FPS: 126 (7.93 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 143 (6.99 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 145 (6.89 mspf)
Editor FPS: 143 (6.99 mspf)
```


**Prefer Wayland On**

```
eobet@surface:~/Downloads$ ./Godot_v4.3-stable_linux.x86_64 --print-fps flag: godot --print-fps ./shadertest2/project.godot
Godot Engine v4.3.stable.official.77dcf97d8 - https://godotengine.org
WARNING: Can't obtain the XDG decoration manager. Libdecor will be used for drawing CSDs, if available.
     at: init (platform/linuxbsd/wayland/wayland_thread.cpp:3713)
Vulkan 1.3.280 - Forward Mobile - Using Device #1: NVIDIA - NVIDIA GeForce RTX 3050 Ti Laptop GPU
Requested V-Sync mode: Enabled - FPS will likely be capped to the monitor refresh rate.
Editor FPS: 46 (21.73 mspf)
Editor FPS: 110 (9.09 mspf)
Editor FPS: 108 (9.25 mspf)
Editor FPS: 35 (28.57 mspf)
Editor FPS: 51 (19.60 mspf)
Editor FPS: 50 (20.00 mspf)
Editor FPS: 62 (16.12 mspf)
Editor FPS: 101 (9.90 mspf)
Editor FPS: 69 (14.49 mspf)
Editor FPS: 39 (25.64 mspf)
Editor FPS: 34 (29.41 mspf)
Editor FPS: 52 (19.23 mspf)
Editor FPS: 94 (10.63 mspf)
Editor FPS: 117 (8.54 mspf)
Editor FPS: 63 (15.87 mspf)
Editor FPS: 10 (100.00 mspf)
Editor FPS: 10 (100.00 mspf)
Editor FPS: 15 (66.66 mspf)
Editor FPS: 101 (9.90 mspf)
Editor FPS: 80 (12.50 mspf)
Editor FPS: 99 (10.10 mspf)
Editor FPS: 110 (9.09 mspf)
Editor FPS: 96 (10.41 mspf)
Editor FPS: 111 (9.00 mspf)
Editor FPS: 83 (12.04 mspf)
Editor FPS: 106 (9.43 mspf)
Editor FPS: 62 (16.12 mspf)
Editor FPS: 83 (12.04 mspf)
Editor FPS: 64 (15.62 mspf)
Editor FPS: 70 (14.28 mspf)
Editor FPS: 69 (14.49 mspf)
Editor FPS: 69 (14.49 mspf)
Editor FPS: 83 (12.04 mspf)
Editor FPS: 102 (9.80 mspf)
Editor FPS: 77 (12.98 mspf)
Editor FPS: 80 (12.50 mspf)
Editor FPS: 75 (13.33 mspf)
Editor FPS: 94 (10.63 mspf)
Editor FPS: 96 (10.41 mspf)
Editor FPS: 100 (10.00 mspf)
Editor FPS: 85 (11.76 mspf)
Editor FPS: 121 (8.26 mspf)
Editor FPS: 97 (10.30 mspf)
Editor FPS: 110 (9.09 mspf)
Editor FPS: 104 (9.61 mspf)
Editor FPS: 90 (11.11 mspf)
Editor FPS: 88 (11.36 mspf)
Editor FPS: 83 (12.04 mspf)
Editor FPS: 102 (9.80 mspf)
Editor FPS: 112 (8.92 mspf)
Editor FPS: 103 (9.70 mspf)
Editor FPS: 98 (10.20 mspf)
Editor FPS: 94 (10.63 mspf)
Editor FPS: 111 (9.00 mspf)
Editor FPS: 98 (10.20 mspf)
Editor FPS: 101 (9.90 mspf)
```

Also, I thought I had a 120hz screen, so it's weird to see it go higher... it's a Microsoft Surface Studio laptop so it's one of those which switch between an Intel GPU and an Nvidia GPU... (I wouldn't mind keeping the Editor at 60 to save on resources, btw).

### Steps to reproduce

Run Godot with the flags from [here](https://github.com/godotengine/godot/issues/88346#issuecomment-2289728374), and test with "prefer wayland" on and off (with restarts in between).

### Minimal reproduction project (MRP)

N/A