Skip to content

Commit

Permalink
Remove superfluous profiling scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 9, 2023
1 parent 0c300e1 commit 3c8110e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/eframe/src/native/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3c8110e

Please sign in to comment.