MFnMesh gets slow

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 03 March 2013   #16
hmmm let me think about this....

/r
__________________
- Oh no, it's me -
 
Old 03 March 2013   #17
can you elaborate how do you know that mesh is getting re-evaluated? by just timing of MFnMesh creation? or do you actually see compute method of the input node kick off?

connect a graph:
sourceMesh -> my node1 -> [my node 2 ... my node 10]

and see if "my node 1" gets evaluated 10 times instead of just 1.
__________________
Victor
ngskintools.com - skinning plugin for Autodesk Maya
 
Old 03 March 2013   #18
Your right I can't be really sure does mesh node really re-evaluate. I checked it with dgtimer and heatmapping. Source mesh start to take more and more time (according to dgtimer) if I keep adding myNodes. So that's why I think mesh node is re-evaluated every time.
__________________
http://www.verajankorva.com
 
Old 03 March 2013   #19
if you could create a simple MFnMesh - shape node and use that for debugging ?

Feasible ?

/r
__________________
- Oh no, it's me -
 
Old 03 March 2013   #20
I like that idea, that would allow me to see more clearly what really happens. Thanks
__________________
http://www.verajankorva.com
 
Old 03 March 2013   #21
Quote:
sciLoop: Why do I need to set output plug to something? I do set it clean but true, I don't give any value for it.


You could try to use the command: "isDirty" in your compute function and control if your output plug is clean or dirty.

If your plug is really clean, there should definitely happen no recomputation.
 
Old 03 March 2013   #22
I did what Risto suggested and made custom mesh and mesh run it's compute function 4 times in two frames with none of my custom nodes attached and it has two inputs so 4 times makes sense. If attach my two hundred nodes, Maya still calls compute function only four times. Now I actually get very much like results I would expect get with this custom mesh node. Mesh node didn't start to cost more with 200 nodes like it did before with Maya's default mesh node.
__________________
http://www.verajankorva.com
 
Old 03 March 2013   #23
so AD support is the next address ?

btw: is there any history on the mesh node which is causing the unwanted re-evaluation ?

/risto
__________________
- Oh no, it's me -
 
Old 03 March 2013   #24
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:42 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.