mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
[demo] Move backend into an optional panel of WrapApp
This commit is contained in:
@@ -10,7 +10,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
|
||||
c.bench_function("demo_windows_minimal", |b| {
|
||||
b.iter(|| {
|
||||
ctx.begin_frame(raw_input.clone());
|
||||
demo_windows.ui(&ctx, |_ui| {});
|
||||
demo_windows.ui(&ctx);
|
||||
ctx.end_frame()
|
||||
})
|
||||
});
|
||||
@@ -24,7 +24,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
|
||||
c.bench_function("demo_windows_full", |b| {
|
||||
b.iter(|| {
|
||||
ctx.begin_frame(raw_input.clone());
|
||||
demo_windows.ui(&ctx, |_ui| {});
|
||||
demo_windows.ui(&ctx);
|
||||
ctx.end_frame()
|
||||
})
|
||||
});
|
||||
@@ -35,7 +35,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
|
||||
ctx.memory().all_collpasing_are_open = true; // expand the demo window with everything
|
||||
let mut demo_windows = egui_demo_lib::DemoWindows::default();
|
||||
ctx.begin_frame(raw_input.clone());
|
||||
demo_windows.ui(&ctx, |_ui| {});
|
||||
demo_windows.ui(&ctx);
|
||||
let (_, paint_commands) = ctx.end_frame();
|
||||
|
||||
c.bench_function("tessellate", |b| {
|
||||
|
||||
Reference in New Issue
Block a user