Closed jdiwnab closed 9 years ago
Currently, every cart3.mult() call and such creates a new cart3 object. This is easy to work with but creates a large number of objects that slow down the simulation. Refactor to reduce the time taken in .mult and in constructors.
Also consider using three.js for render. They may have made the operations faster.
Profiling shows that now most time is spent doing actual calculations, rather than arithmetic. Closing
Currently, every cart3.mult() call and such creates a new cart3 object. This is easy to work with but creates a large number of objects that slow down the simulation. Refactor to reduce the time taken in .mult and in constructors.