Jump to content

Questions about "Foreach"


Recommended Posts

Hey, guys,

I found "foreach" sop is extremely slow even with empty contents when the number of points is high. So I assume it uses brute-force to calculate and iterate, am I right?

My question is, is there any way in houdini to do such kind of foreach operation in multi-thread or faster way? cos I need to do some geometry operation inside foreach like "resample“ and ”blast“, therefore I cannot utilize the vop sop.

thanks very much.

best regards

Link to comment
Share on other sites

I don't see why ForEach SOP is not threaded, unless it states that in the manual. Each iteration of ForEach works on it's isolated parts. The only time I could see ForEach forced into a single thread is if merging results was disabled.

Anyway, wish you had shared the point count and ForEach mode (groups, primitives or points)?

What is it exactly your trying to do?

Link to comment
Share on other sites

I don't see why ForEach SOP is not threaded, unless it states that in the manual.

Afaik Foreach is not multi-threaded because it would require completely new scheduling system. Sops are normally executed one after another (and threaded eventually inside particular node), unless they exists in different objects and HOUDINI_MULTITHREADED_COOKING is set to 1 (and assuming it's working in H12).

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