1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

egui_web: document how to fill the full width of the browser

This commit is contained in:
Emil Ernerfeldt
2021-06-03 18:56:26 +02:00
parent 2932ff0e53
commit ec6268e4ac
3 changed files with 12 additions and 0 deletions

View File

@@ -304,6 +304,9 @@ The _frame_ in `eframe` stands both for the frame in which your egui app resides
### Why is `egui_web` using so much CPU in Firefox?
On Linux and Mac, Firefox will copy the WebGL render target from GPU, to CPU and then back again: https://bugzilla.mozilla.org/show_bug.cgi?id=1010527#c0
### Why does my web app not fill the full width of the screen?
To alleviate the above mentioned performance issues the default max-width of an egui web app is 1024 points. You can change this by ovveriding the `fn max_size_points` of `epi::App`.
## Other