Skip to content

Commit

Permalink
Add link to layouting tracking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk authored Apr 18, 2024
1 parent 78d95f4 commit 79fbd17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 79fbd17

Please sign in to comment.