Jump to content

Solver inside loop and caching


Recommended Posts

Hi all!

Just a general question here. Having a solver inside a for-loop, looping through objects. I realize I need to turn off caching, or else it doesn't read in every new piece correctly.
This seems to be extremely slow though, so I'm just wondering if there's a way to optimize this?

What I'm doing is having an RBD sim, and having the pieces erode away. So I cached the sim, eroding the fracture elements in a for-loop and transfer the new pieces back to the simulation points. I hope and think this is a decent way to do it, except it'd be nice if I could cache out and iterate on the solver loop faster. Having 150 pieces, it's cooked 35 frames in 25 minutes now, and that's with a low-res VDB conversion, and naturally getting slower for each frame.

  • Like 1
Link to comment
Share on other sites

don't use solver inside of the for loops

the best workflow nowadays for that will probably be TOPs, where you can run every objet through your sim independently, and also change only the ones that you need if you need to iterate more

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...