1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

[demo] Move backend into an optional panel of WrapApp

This commit is contained in:
Emil Ernerfeldt
2021-01-02 01:01:01 +01:00
parent 3e0bedd96d
commit b3d1016507
7 changed files with 354 additions and 332 deletions

View File

@@ -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| {