phetsims / collision-lab

"Collision Lab" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 4 forks source link

Improve performance of Paths #116

Closed brandonLi8 closed 4 years ago

brandonLi8 commented 4 years ago

Currently there is one PathCanvasNode for each path. This can be condensed to one PathsCanvasNode that draws all paths, similar to how GAO draws all traces with one canvas. Doing that now.

brandonLi8 commented 4 years ago

Done in the commit above. This significantly improved performance (from testing it locally). Some clean up work still needs to be done.

brandonLi8 commented 4 years ago

Clean up done. Closing.