Can really VEX save so much memory?

   1037   3   1
User Avatar
85 posts
Joined: 4月 2017
I am comparing very simple node with Attribute Wrangle (VEX) and I've noticed the amount of saving in memory comparing to Attribute Create is huge and it was very simple task assigning normals to points.

Little thing I didn't understand in the info about the memory is the "New:" didn't know what are this New referring to.

User Avatar
900 posts
Joined: 2月 2016
thanks for bringing this up.
Regarding the matter, I've also always wanted to know what "instanced" means
Edited by Andr - 2023年6月4日 04:28:19
User Avatar
67 posts
Joined: 10月 2018
I think it like this:

DATA= ((0,-1,0));
pts= ( (p1,DATA), (p2,DATA)...);


pts = ( (p1,(0,-1,0)); (p2,(0,-1,0))...);

Which means in Attrcreate you have n times the vector stored, but in Wrangle vector is stored once, but referenced n times, which is less memory consuming. And this is the principlpe of instncing.
Edited by GOgraphR - 2023年6月4日 21:41:40
User Avatar
8325 posts
Joined: 7月 2007
- no, you are not saving any significant memory, if you want to really compare you have to do it on a geometry with millions of points and preferably varying value, to start seeing meaningful numbers beyond such tiny deviations

- I believe Attribute Wrangle is showing (instanced) just because it's a HDA, so technically a subnet which doesn't directly take any memory, but the memory it taken but the geo held by the internal nodes
just wrap Attribute Create SOP in Subnet and MMB on that subnet, it will show it the same way

- if you want to see more granular memory stats and precise time took by the Attribute Wrangle you have to dive inside and MMB on Attribute Wrangle Core SOP (especially since Last Cook Time on HDAs and Subnets is not the actual time it took to cook)
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links