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

Slowness when closing game window on Godot 4.3.rc3 #95289

Closed
stephannv opened this issue Aug 8, 2024 · 2 comments · Fixed by #95295
Closed

Slowness when closing game window on Godot 4.3.rc3 #95289

stephannv opened this issue Aug 8, 2024 · 2 comments · Fixed by #95295

Comments

@stephannv
Copy link

stephannv commented Aug 8, 2024

Tested versions

  • Reproducible in: 4.3.rc3
  • Not reproducible in: 4.3.rc2

System information

Godot v4.3.rc3 - macOS 14.2.1 - Vulkan (Mobile) - integrated Apple M1 Max - Apple M1 Max (10 Threads)

Issue description

When closing the game window, there is a delay/slowness, sometimes it is faster, sometimes it takes a few seconds. This started after installing 4.3.rc3 (I was using 4.3.rc2)

ps.: The circle on mouse cursor indicates a click.

pb14.mp4

EDIT:

I ran a project via 4.3.rc3 command line using --verbose flag, and I got this output when closing the game window:

XR: Clearing primary interface
XR: Removed interface "Native mobile"
XR: Removed interface "OpenXR"
ERROR: 1 RID allocations of type 'N10RendererRD14TextureStorage7TextureE' were leaked at exit.
2024-08-08 14:14:05.435 Godot[33741:531329] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_inputSessionDoneSleepWithReply:) block performed very slowly (2.20 secs).
WARNING: 2 RIDs of type "Texture" were leaked.
     at: finalize (servers/rendering/rendering_device.cpp:5758)
[mvk-info] Destroyed VkDevice on GPU Apple M1 Max with 10 Vulkan extensions enabled.
[mvk-info] Destroyed VkPhysicalDevice for GPU Apple M1 Max with 43 MB of GPU memory still allocated.
[mvk-info] Destroying VkInstance for Vulkan version 1.2.0 with 4 Vulkan extensions enabled.
ERROR: Parameter "RenderingServer::get_singleton()" is null.
   at: ~CompressedTexture2D (scene/resources/compressed_texture.cpp:464)

When using 4.3.rc2 I got:

XR: Clearing primary interface
XR: Removed interface "Native mobile"
XR: Removed interface "OpenXR"
ERROR: 1 RID allocations of type 'N10RendererRD14TextureStorage7TextureE' were leaked at exit.
WARNING: 2 RIDs of type "Texture" were leaked.
     at: finalize (servers/rendering/rendering_device.cpp:5758)
[mvk-info] Destroyed VkDevice on GPU Apple M1 Max with 10 Vulkan extensions enabled.
[mvk-info] Destroyed VkPhysicalDevice for GPU Apple M1 Max with 43 MB of GPU memory still allocated.
[mvk-info] Destroying VkInstance for Vulkan version 1.2.0 with 4 Vulkan extensions enabled.
ERROR: Parameter "RenderingServer::get_singleton()" is null.
   at: ~CompressedTexture2D (scene/resources/compressed_texture.cpp:464)

So I think the problem is here:

2024-08-08 14:14:05.435 Godot[33741:531329] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_inputSessionDoneSleepWithReply:) block performed very slowly (2.20 secs).

Steps to reproduce

Just create a new project with default settings, create a empty scene, run it and try to close the window.

Minimal reproduction project (MRP)

It can be reproduced creating a new project from scratch.

@GreatTusk
Copy link

I've created a project from scratch with an empty scene and I couldn't reproduce the issue on Windows.

scene_test.mp4

My system info:

Godot v4.3.rc3 - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.5186) - 11th Gen Intel(R) Core(TM) i5-11400F @ 2.60GHz (12 Threads)

Perhaps this is OS dependent?

@stephannv
Copy link
Author

I've created a project from scratch with an empty scene and I couldn't reproduce the issue on Windows.
scene_test.mp4

My system info:

Godot v4.3.rc3 - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.5186) - 11th Gen Intel(R) Core(TM) i5-11400F @ 2.60GHz (12 Threads)

Perhaps this is OS dependent?

It is possible. The log message mentions imkxpc_inputSessionDoneSleepWithReply, and it seems to be a mac os-related code (Input Message Kit).
https://github.com/w0lfschild/macOS_headers/blob/master/macOS/Frameworks/InputMethodKit/365.15.2/IMKXPCSupport-Protocol.h#L40

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

Successfully merging a pull request may close this issue.

4 participants