Open jalberse opened 1 year ago
I have improved this in a local commit by fioxin gfrom_state_vector. Possibly still an issue, we'll see once that's in. Dev in issue 61.
Profiling shows that from_state_vector is still taking up the largest chunk of time in an Euler step by far (others negligible), but is much improved. Maybe can be improved further.
Discovered during SPH development that the State representation is too slow; too many copies, possibly? We create/destroy the State each frame which could be a lot of large allocations.
We should prefer to have one allocation for the state that's reused.