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

Context::repaint_causes: file:line of what caused a repaint #3949

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

emilk
Copy link
Owner

@emilk emilk commented Feb 2, 2024

This adds Context::repaint_causes which returns a Vec<RepaintCause>, containing the file:line of the call to ctx.request_repaint().

If your application is stuck forever repainting, this could be a useful tool to diagnose it.

@emilk emilk added the egui label Feb 2, 2024
@emilk emilk merged commit 114f820 into master Feb 2, 2024
36 checks passed
@emilk emilk deleted the emilk/repaint-causes branch February 2, 2024 15:06
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
…k#3949)

* Basic version of emilk#3931

This adds `Context::repaint_causes` which returns a `Vec<RepaintCause>`,
containing the `file:line` of the call to `ctx.request_repaint()`.

If your application is stuck forever repainting, this could be a useful
tool to diagnose it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant