(&self, ui: &mut egui::Ui)
| 39 | |
| 40 | impl PerformanceDemo { |
| 41 | pub fn show_plot(&self, ui: &mut egui::Ui) -> Response { |
| 42 | Plot::new("performance_demo") |
| 43 | .data_aspect(1.0) |
| 44 | .show(ui, |plot_ui| { |
| 45 | plot_ui.points( |
| 46 | Points::new("markers", self.markers.clone()) |
| 47 | .radius(self.marker_radius) |
| 48 | .shape(self.marker_shape) |
| 49 | .filled(true), |
| 50 | ); |
| 51 | }) |
| 52 | .response |
| 53 | } |
| 54 | |
| 55 | pub fn show_controls(&mut self, ui: &mut egui::Ui) -> Response { |
| 56 | ui.request_repaint(); // Continuous repaint for FPS counter |