-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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 glitches out and becomes unusable after being left in the background for a long time #72728
Comments
I've noticed this too (both behaviors). Somtimes the 3d viewport also gets really laggy, as if it's framerate limited. |
Can anyone experiencing this issue test #69995?
This may be due to the editor thinking it's unfocused. You can disable FPS limiting when unfocused by decreasing Unfocused Low Processor Mode Sleep Usec to |
For myself this is immediate if I minimize Godot, whether after 1 second of use or 2 hours, it will not unminimize, and must be closed |
Same is happening here in Fedora, allegedly it affects both Wayland and X11 and can also happen in any DE. |
I think I found a way to reproduce the behavior of the bug using an editor plugin with the following script: @tool
extends EditorPlugin
var panel_container := HFlowContainer.new()
var button := Button.new()
func _enter_tree() -> void:
button.text = "Do bug"
button.pressed.connect(bug)
panel_container.add_child(button)
add_control_to_bottom_panel(panel_container, "Bug 72728")
func _exit_tree() -> void:
remove_control_from_bottom_panel(panel_container)
panel_container.queue_free()
func bug() -> void:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MINIMIZED)
await get_tree().create_timer(0.1).timeout
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MAXIMIZED)
await get_tree().create_timer(0.1).timeout
var editor := get_editor_interface()
editor.set_main_screen_editor("Script")
editor.edit_script(get_script()) Create the plugin, paste this script, and enable it. Then click the button found in the bottom panel. There will be some flashing as the window minimizes. Trying to open the editor again will have the window glitched on minimize. Note that this is only reliable if a script editor is opened which is why the last few lines opens itself in the script editor. This was tested on a dev build using commit 64eeb04 on Ubuntu 23.04. |
Still happens on 4.0.3, it can happen randomly after you focus on editable text. |
can confirm this is happening for me as well on 4.0.3. I'm running Pop!_OS 22.04 LTS. |
Well, I've been using 4.1 betas and I've not encountered the issue in the first video. But I still encounter the issue in the second video. I'll open a new issue. |
Godot version
4.0 beta 17 (but I've encountered it since early alphas)
System information
Ubuntu 22.04.1 LTS
Issue description
Sorry for the jank, I just went to record this as soon as I could catch it on camera. The task bar is on the left and I'm clicking the Godot icon. It auto-minimizes when I try to open it most of the time.
2023-02-04.19-54-12.mp4
I'm pressing F5 here to play the project normally, but it closes immediately:
2023-02-04.19-54-55.mp4
Steps to reproduce
I have been unable to reproduce it, but leaving Godot in the background for a few hours often leads to it happening. For all I know, it seems random. Happens even on a tiny project.
However, one reliable way to trigger this behavior seems to be suspending my machine.
the "About" of my laptop:
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: