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:
@@ -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.
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user