Speed up drawing by reusing plot objects
Los mantenedores suelen responder en 9 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- matplotlib, python
- Área
- computer-graphics, performance
Línea de trabajo
Start by profiling pure_pursuit_path_tracking in test mode and tracing GlobalXYVisualizer.update() and FourWheelsVehicle.draw; the issue names these entry points but not their file paths. Compare the drawing calls with the component draw(axes, elems) contract and identify how trajectory history is drawn. Done means the same simulations look identical and before/after test runtime numbers are reported.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
Profiling pure_pursuit_path_tracking in test mode shows that almost all runtime is drawing:
| Part | Share of runtime |
|---|---|
FourWheelsVehicle.draw |
79% (of which Axes.plot 76%) |
State.draw (trajectory history) |
11% |
FourWheelsVehicle.update (the actual simulation) |
4% |
Every frame, GlobalXYVisualizer.update() removes all plot objects and every component creates new ones with axes.plot(...). The vehicle alone calls axes.plot 8 times per frame (body, chassis, 4 tires, 2 axles).
Expected fix
- Step 1 (small): draw all vehicle parts with a single
axes.plotcall (concatenate the outlines with NaN separators). - Step 2 (larger): create plot objects once and update them with
set_data()every frame. This changes thedraw(axes, elems)contract used by all components, so it is done component by component, keeping the old contract working until all are migrated.
Done when
The same simulations look identical, and test runtime drops (report before/after numbers).
- Lenguaje dominante
- Python
- Estrellas
- 1.9k
- Forks
- 313
- Merge medio
- 9 d 10 h
- PR fusionados (30 d)
- 7
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ShisatoYano/AutonomousVehicleControlBeginnersGuide
-
good first issue refactoring
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ShisatoYano/AutonomousVehicleControlBeginnersGuide#129 · 1 comentario ·
Los mantenedores suelen responder en 9 días
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ShisatoYano/AutonomousVehicleControlBeginnersGuide#99 ·
Los mantenedores suelen responder en 9 días
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ShisatoYano/AutonomousVehicleControlBeginnersGuide#98 ·
Los mantenedores suelen responder en 9 días
-
documentation enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ShisatoYano/AutonomousVehicleControlBeginnersGuide#88 ·
Los mantenedores suelen responder en 9 días
-
long term
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
ShisatoYano/AutonomousVehicleControlBeginnersGuide#131 ·
Los mantenedores suelen responder en 9 días
Todos los issues de ShisatoYano/AutonomousVehicleControlBeginnersGuide
Issues similares
-
Admin member of a research group cannot see the HX2 allocation until they've been added to itAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
developmentseed/titiler-cmr#278 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días