hypehuman / Mechanics

0 stars 0 forks source link

Use Rust to speed up calculations #1

Open hypehuman opened 1 year ago

hypehuman commented 1 year ago

When running the UI on the larger simulations, the vast majority of the CPU time is spent in MechanicsCore.Simulation.Leap(). At 2109d1944967f81eb04d241873f6de4249316100 I tried speeding it up by using Parallel.For, which did make huge simulations a bit faster, but small simulations are much slower, and the whole UI is much jerkier; i.e. the speed is inconsistent.

I have a hunch that it would perform better if we used Rust for the backend calculations.