From 3c8110eeeb5a3df99629413ed336b22c9e893971 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 9 Nov 2023 19:50:53 +0100 Subject: [PATCH] Remove superfluous profiling scopes --- crates/eframe/src/native/run.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index 62b04e177..47657f21e 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -1515,10 +1515,7 @@ mod glow_integration { ); } - let clipped_primitives = { - crate::profile_scope!("tessellate"); - integration.borrow().egui_ctx.tessellate(shapes) - }; + let clipped_primitives = integration.borrow().egui_ctx.tessellate(shapes); { let mut glutin = glutin.borrow_mut(); glutin.current_gl_context = Some( @@ -2488,10 +2485,7 @@ mod wgpu_integration { state.borrow_mut().as_mut().unwrap(), ); - let clipped_primitives = { - crate::profile_scope!("tessellate"); - integration.borrow().egui_ctx.tessellate(shapes) - }; + let clipped_primitives = integration.borrow().egui_ctx.tessellate(shapes); let integration = &mut *integration.borrow_mut(); let screenshot_requested = &mut integration.frame.output.screenshot_requested;