1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Split out tesselation from Context::end_frame()

This commit is contained in:
Emil Ernerfeldt
2020-11-07 11:44:32 +01:00
parent 901a6920be
commit af11d766fc
9 changed files with 59 additions and 29 deletions

View File

@@ -89,7 +89,8 @@ pub fn run(
};
app.ui(&ctx, &mut integration_context);
let app_output = integration_context.output;
let (egui_output, paint_jobs) = ctx.end_frame();
let (egui_output, paint_commands) = ctx.end_frame();
let paint_jobs = ctx.tesselate(paint_commands);
let frame_time = (Instant::now() - egui_start).as_secs_f64() as f32;
previous_frame_time = Some(frame_time);