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

Add opt-in puffin feature to egui (#3298)

* Add opt-in `puffin` feature to egui

* fix web build

* Fix web for realz
This commit is contained in:
Emil Ernerfeldt
2023-09-04 15:01:22 +02:00
committed by GitHub
parent 72adf3bde3
commit 9e86bb8d6a
11 changed files with 74 additions and 13 deletions

View File

@@ -63,9 +63,9 @@ persistence = [
## Enable profiling with the [`puffin`](https://docs.rs/puffin) crate.
##
## Only enabled on native, because of the low resolution (1ms) of time keeping in browsers.
## Only enabled on native, because of the low resolution (1ms) of clocks in browsers.
## `eframe` will call `puffin::GlobalProfiler::lock().new_frame()` for you
puffin = ["dep:puffin", "egui_glow?/puffin", "egui-wgpu?/puffin"]
puffin = ["dep:puffin", "egui/puffin", "egui_glow?/puffin", "egui-wgpu?/puffin"]
## Enable screen reader support (requires `ctx.options_mut(|o| o.screen_reader = true);`) on web.
##