-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
ProgressBar calls the _draw()
function an infinite number of times
#95709
Comments
_draw()
function an infinite number of times
Setting EDIT: extends Node2D
func _draw() -> void:
queue_redraw() runs without problems, so this is weird. |
So the problem here has nothing to do with either Here's what I could reproduce: Example code: extends Control
func _draw():
print("Drawing")
queue_redraw()
Put this on a node on startup to reproduce. I have a feeling this may already be known, but if not, this issue should probably be renamed/changed. |
Got a fix for this up: |
Tested versions
System information
Godot v4.3.stable - Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3050 (NVIDIA; 32.0.15.6070) - AMD Ryzen 5 3600 6-Core Processor (12 Threads)
Issue description
When I add
fill_mode = 1
to _draw() function for Progress Bar and run scene with that progress bar in it game freezes before loading properly. In Profiler Debugger you can see that the function _draw() is called houndreds of thousands of times. After some time game unfreezes.Steps to reproduce
Minimal reproduction project (MRP)
progress_bar_glitch.zip
The text was updated successfully, but these errors were encountered: