mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Speed up fractal_clock painting (#152)
clip unwatchable line before drawing
This commit is contained in:
@@ -116,6 +116,9 @@ impl Painter {
|
||||
.add(self.clip_rect, shape)
|
||||
}
|
||||
|
||||
/// Add many shapes at once.
|
||||
///
|
||||
/// Calling this once is generally faster than calling [`Self::add`] multiple times.
|
||||
pub fn extend(&self, shapes: Vec<Shape>) {
|
||||
if !shapes.is_empty() {
|
||||
self.ctx
|
||||
|
||||
Reference in New Issue
Block a user