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

Godot 4.1 slow down when resizing window - Windows 11 - Forward+ #79446

Open
coumcashier opened this issue Jul 13, 2023 · 3 comments · May be fixed by #94430
Open

Godot 4.1 slow down when resizing window - Windows 11 - Forward+ #79446

coumcashier opened this issue Jul 13, 2023 · 3 comments · May be fixed by #94430

Comments

@coumcashier
Copy link
Contributor

coumcashier commented Jul 13, 2023

Godot version

v4.1.stable.official [9704596]

System information

Godot v4.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - integrated Intel(R) Iris(R) Xe Graphics (Intel Corporation; 31.0.101.3889) - 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 Threads)

Issue description

When using forward+ and mobile renderer the game window does not update while it is being resized.
The window content updates when the cursor comes to a stop (without releasing left mouse button).
When recording with OBS it seems to update more frequently as shown in the video.

This issue does not occur with the compatibility renderer

resizing with forward+

forward+.mp4

resizing with compatibility

compat.mp4

Steps to reproduce

Resize the window of any project produced by Godot 4.1 or the Godot editor.

example shown in video
spinning-cube.zip

Minimal reproduction project

spinning-cube.zip

@Calinou
Copy link
Member

Calinou commented Jul 13, 2023

I can't reproduce this on 4.1.stable (Linux/X11, GeForce RTX 4090 with NVIDIA 535.54.03). This is likely Windows-specific.

Recreating buffers is much more expensive in Vulkan than OpenGL, so I'm not sure if this can be completely fixed. This is not only because the Vulkan-based renderers are much more advanced than OpenGL, but also because of how Vulkan works. (The same goes for project startup times.)

@coumcashier Remember that for GitHub video previews to work, you need to have a blank line before and after the video URL. I edited your post accordingly, but remember to do this in the future 🙂

@kitbdev
Copy link
Contributor

kitbdev commented Oct 14, 2023

This also affects the editor window.

System Info:

Godot v4.2.beta (a574c02) - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 (NVIDIA; 31.0.15.3598) - Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 Threads)

When the debugger is attached I get this in the debug console:

Exception thrown at 0x00007FFDF5F04FFC in godot.windows.editor.dev.x86_64.exe: Microsoft C++ exception: Poco::NotFoundException at memory location 0x0000009E7AFF24D0.
Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_bbbaf2edf0a69617\Display.NvContainer\MessageBus.dll'.
Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_bbbaf2edf0a69617\nvwgf2umx.dll'.
Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_bbbaf2edf0a69617\nvldumdx.dll'.
Unloaded 'C:\Windows\System32\ntasn1.dll'.
Unloaded 'C:\Windows\System32\ncrypt.dll'.
Unloaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3e62be9c39fb0007\igd10iumd64.dll'.
Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_bbbaf2edf0a69617\nvldumdx.dll'. 
Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_bbbaf2edf0a69617\nvwgf2umx.dll'. 
Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_bbbaf2edf0a69617\Display.NvContainer\MessageBus.dll'. 
Exception thrown at 0x00007FFDF5F04FFC in godot.windows.editor.dev.x86_64.exe: Microsoft C++ exception: Poco::NotFoundException at memory location 0x0000009E7AFE4110.
Exception thrown at 0x00007FFDF5F04FFC in godot.windows.editor.dev.x86_64.exe: Microsoft C++ exception: Poco::NotFoundException at memory location 0x0000009E7AFE4150.
Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3e62be9c39fb0007\igd10iumd64.dll'. 
Loaded 'C:\Windows\System32\ncrypt.dll'. 
Loaded 'C:\Windows\System32\ntasn1.dll'. 

These messages continuously repeat while resizing.

@maidopi-usagi
Copy link
Contributor

@Calinou I did some rough tests and found it maybe related to vsync. (specially vulkan renderers on Windows)

As the following video shows, with vsync disabled, resizing behaves smoothly, and if vsync was set to 'enabled' it will jitter.
(maxfps both limited to 120fps)

2024-02-27.00-37-23.mp4

And the same settings on macos and linux looks totally fine.

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

Successfully merging a pull request may close this issue.

4 participants