martinlindelof / clothx

Port of traer physics (from processsing) to haXe (targeting flash so far, but c++ and javascript on the to-do list). A simple particle system with gravity, attractor, springs and particles. Fast enough to run realtime.
http://www.martinlindelof.com/physics/clothx/
24 stars 1 forks source link

optimization and cleanup #1

Closed andyli closed 13 years ago

andyli commented 13 years ago

Beside cleaning up unnecessary code, I've also added a timer to ClothSim and Grid.

Strange that Cloud is not in the repo?

andyli commented 13 years ago

Oh, look like I make it slower. Reason should be for-each loop is slower than for loop in Flash. I am closing this now and will make another pull request later.