mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Improve the introspection paint stats
This commit is contained in:
@@ -101,11 +101,14 @@ impl Widget for &epaint::stats::PaintStats {
|
||||
|
||||
ui.label("Intermediate:");
|
||||
label(ui, shapes, "shapes").on_hover_text("Boxes, circles, etc");
|
||||
label(ui, shape_text, "text (mostly cached)");
|
||||
ui.horizontal(|ui| {
|
||||
label(ui, shape_text, "text");
|
||||
ui.small("(mostly cached)");
|
||||
});
|
||||
label(ui, shape_path, "paths");
|
||||
label(ui, shape_mesh, "nested meshes");
|
||||
label(ui, shape_vec, "nested shapes");
|
||||
ui.label(format!("{} callbacks", num_callbacks));
|
||||
ui.label(format!("{:6} callbacks", num_callbacks));
|
||||
ui.add_space(10.0);
|
||||
|
||||
ui.label("Text shapes:");
|
||||
@@ -115,7 +118,7 @@ impl Widget for &epaint::stats::PaintStats {
|
||||
ui.add_space(10.0);
|
||||
|
||||
ui.label("Tessellated (and culled):");
|
||||
label(ui, clipped_primitives, "clipped_primitives")
|
||||
label(ui, clipped_primitives, "primitives lists")
|
||||
.on_hover_text("Number of separate clip rectangles");
|
||||
label(ui, vertices, "vertices");
|
||||
label(ui, indices, "indices").on_hover_text("Three 32-bit indices per triangles");
|
||||
|
||||
Reference in New Issue
Block a user