11-04-2022, 07:48 AM
(08-04-2022, 10:06 PM)niuage Wrote: I was just wondering if ObiAmbientForceZone couldnt be improved to not do any computation for the solvers that have been marked as "dont simulate when not visible"?
Solver_OnStepBegin could exit early for instance.
I could certainly make the changes myself, but just wanted to see if that made sense.
Hi!
Yes, you could certainly skip the loop over all particles if the solver is not visible. I can't think of any reason not to do this, so will probably add this by default on future updates.