Jump to content

unload and hard-lock flags


Recommended Posts

sop unload will tell the sop to free up its ram after it's done cooking (assuming it's not the currently displayed node).  it's useful to avoid memory bloat in otls where each additional sop is keeping full geo.

 

lock will force no more cooking for that node and retain the current geo.  it will also save that geo into your hip file, so be careful.

Link to comment
Share on other sites

sop unload will tell the sop to free up its ram after it's done cooking (assuming it's not the currently displayed node).  it's useful to avoid memory bloat in otls where each additional sop is keeping full geo.

 

I dont really understand what advantages unload flag gives to, for example, AttribVOP inside Wrangle SOP

 

lock will force no more cooking for that node and retain the current geo.  it will also save that geo into your hip file, so be careful.

 

I know how locking works :) but what is diffrence between soft locking and hard locking

Thanx!

 

Link to comment
Share on other sites

From HOM docs:

 

A hard-locked node stores its data inside the node, and no longer responds to parameter or input node changes.

 

A soft-locked node stores position delta information , preventing all but a small set of manual modeling changes from being made.

Link to comment
Share on other sites

From HOM docs:

 

A hard-locked node stores its data inside the node, and no longer responds to parameter or input node changes.

 

A soft-locked node stores position delta information , preventing all but a small set of manual modeling changes from being made.

I want to pack (subnet) many SOPs that changes geometry  a lot. What is best - soft or hard, because all the times when I scripting SOPs I using only soft locking.

Thanx!

Edited by Alexey Vanzhula
Link to comment
Share on other sites

 

I dont really understand what advantages unload flag gives to, for example, AttribVOP inside Wrangle SOP

 

I know how locking works :) but what is diffrence between soft locking and hard locking

Thanx!

 

 

 

in the case of a single node in an otl, i'm not sure there's any advantage to unloading.  i believe the parent node (the wrangle) is just instancing the geo in the display'd node (the vop).  but if you had a chain of nodes that were not unloaded, each of them would contain a copy of the geo which could be a lot of extra ram used for no real benefit since it's unlikely in the case of an otl that you'd ever grab from one of the intermediate steps directly.

 

honestly, i've never heard of a soft/hard lock.  just a "lock" (which is a hard lock, presumably).

Edited by fathom
Link to comment
Share on other sites

in the case of a single node in an otl, i'm not sure there's any advantage to unloading.  i believe the parent node (the wrangle) is just instancing the geo in the display'd node (the vop).  but if you had a chain of nodes that were not unloaded, each of them would contain a copy of the geo which could be a lot of extra ram used for no real benefit since it's unlikely in the case of an otl that you'd ever grab from one of the intermediate steps directly.

 

honestly, i've never heard of a soft/hard lock.  just a "lock" (which is a hard lock, presumably).

Can you show simple otl example where unload flag is a good idea? :)

Link to comment
Share on other sites

i can't name one off the top of my head.  the ram benefit is countered by the fact that an unloaded sop has to recook if you ask for its data, so a downstream change can have a major impact.

 

for example, let's say you have an otl that does some filtering on an sdf volume.  it expands the sdf, filters it, then shrinks it back down.  3 steps that could all be unloaded to prevent having extra copies of your data in ram.  the downside is that if you change the final step, you'll have to cook the first two since they've dropped their data already.  kind of a pain when you're working on things, but if you're pushing the ram limit, you might not have any other way to get things executed.

  • Like 4
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...