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

Disable update spinner when debug redraw is active #83143

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Oct 11, 2023

@clayjohn
Copy link
Member

I don't understand why we would disable this. The point of debug redraw is to show when things are redrawn. Since the update spinner updates every frame, it makes sense that it constantly triggers the debug redraw code.

Is the concern about having something flashing on the screen?

To me it looks like it's working as intended.

@KoBeWi
Copy link
Member Author

KoBeWi commented Oct 11, 2023

The problem is that update spinner triggers debug redraw, which causes the update spinner to redraw and it runs into an infinite redraw loop. Update spinner is supposed to indicate that something is being updated, but here it's signalling its own update, which is pointless. I think perfectly the update spinner should be an exception from debug redraw, but it's such a niche feature that anything more than a quickfix isn't probably worth it.

@clayjohn
Copy link
Member

The problem is that update spinner triggers debug redraw, which causes the update spinner to redraw and it runs into an infinite redraw loop. Update spinner is supposed to indicate that something is being updated, but here it's signalling its own update, which is pointless. I think perfectly the update spinner should be an exception from debug redraw, but it's such a niche feature that anything more than a quickfix isn't probably worth it.

Ah, okay right. That makes sense.

@akien-mga akien-mga merged commit 3e8902d into godotengine:master Oct 11, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the you_spin_me_round_not branch October 11, 2023 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants