Skip to content

Hide the log viewer with Visibility, not Display::None - #15

Merged
extrawurst merged 1 commit into
masterfrom
fix-hide-stall
Nov 15, 2026
Merged

extrawurst merged 1 commit into
masterfrom
fix-hide-stall

Conversation

@extrawurst

Copy link
Copy Markdown
Contributor

Display::None collapses every log line to zero width, so bevy_ui re-lays out all their text, one glyph per line under LineBreak::AnyCharacter. With 5000 lines in a game's debug build, hiding stalled ~12 s and opening ~0.5 s; with Visibility::Hidden neither hitches, and 5000 lines logged while hidden cost 0.7 s instead of 12 s.

`Display::None` collapses every log line to zero width, so bevy_ui re-lays
out all their text, one glyph per line under `LineBreak::AnyCharacter`.
With 5000 lines in a game's debug build, hiding stalled ~12 s and opening
~0.5 s; with `Visibility::Hidden` neither hitches, and 5000 lines logged
while hidden cost 0.7 s instead of 12 s.
@extrawurst
extrawurst merged commit 9eba5a7 into master Nov 15, 2026
6 checks passed
@extrawurst
extrawurst deleted the fix-hide-stall branch November 15, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant