godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89k stars 20.18k forks source link

Heavy stuttering whilst using Godot editor on a G Sync enabled monitor #96125

Open MichaelSavaglia opened 3 weeks ago

MichaelSavaglia commented 3 weeks ago

Tested versions

4.3 stable 4.3 dev

System information

Windows 11, Godot 4.3 stable, Vulkan Forward+

Issue description

The editor stutters frequently whilst using the editor. It's most easily reproducible whilst highlighting text in the text editor disabling G Sync on the monitor resolves the issue. Monitor used is ROG SWIFT PG278QR - I have not been able to test on any other G Sync monitors, but I tested on another non G sync monitor and there was no issue

Steps to reproduce

Enable G Sync on monitor. Open Editor Highlight text in the text editor The PC will now stutter for a second or two.

Minimal reproduction project (MRP)

I have been able to reproduce this in any Godot project, including the small samples and empty projects

MichaelSavaglia commented 3 weeks ago

Enabling "Update Continuously" in the editor settings is an alternative fix

Arondy commented 3 weeks ago

Do you have G-Sync enabled in windowed and fullscreen mode in Nvidia Control Panel? Maybe you should consider switching it to fullscreen only if you have. UPD: Tried to reproduce this on G-Sync Compatible monitor (ardor gaming infinity pro aq27h1) with windowed G-Sync on and hasn't noticed any stuttering during 5 min test.

MichaelSavaglia commented 2 weeks ago

G-Sync is only enabled for full screen. Do you have Update Continuously selected in your settings? If so try disabling that when attempting a repro, if you haven't already

Arondy commented 2 weeks ago

Nope, it is turned off and was so when i tried to reproduce the issue.

Isabello commented 2 weeks ago

I had this problem a few months ago and I solved it by disabling GSync when using Godot.

I tried re-enabling Gsync to help try and reproduce here. I tested both fullscreen and fullscreen windowed options and there are no issues on stable or the older beta versions of 4.3 or even 4.2.1 which is the version I originally had this issue on. I am running Windows 10 so its not a windows version issue, you may need to take a driver update.

rmattson commented 3 days ago

I'm experiencing the stuttering on a G-Sync enabled monitor, driver version 561.09, on v4.3.stable.mono.official [77dcf97d8]. My monitor is an LG 34GP950G.

Disabling G-Sync on the monitor does stop the stuttering. My G-Sync settings were only for fullscreen.

In addition to the OPs repro steps, I can repro this by panning the 2d viewport.

Edgexx commented 1 hour ago

I'm also experience the same issue. Disabling G-Sync via NVIDIA Control Panel resolves the issue. My monitor: Acer Predator XB271HU I was using G-Sync "Enabled for windowed and full screen mode" Godot_v4.3-stable_mono_win64.exe