Add link to layouting tracking issue

This commit is contained in:
Emil Ernerfeldt 2024-04-18 16:08:23 +02:00 committed by GitHub
parent 78d95f430b
commit 79fbd17b33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -255,6 +255,8 @@ You can also call the layout code twice (once to get the size, once to do the in
For "atomic" widgets (e.g. a button) `egui` knows the size before showing it, so centering buttons, labels etc is possible in `egui` without any special workarounds.
See [this issue](https://github.com/emilk/egui/issues/4378) for more.
#### CPU usage
Since an immediate mode GUI does a full layout each frame, the layout code needs to be quick. If you have a very complex GUI this can tax the CPU. In particular, having a very large UI in a scroll area (with very long scrollback) can be slow, as the content needs to be laid out each frame.