Snarlygribbly opened this issue on Dec 17, 2013 · 582 posts
bagginsbill posted Sun, 12 January 2014 at 10:43 PM
Oh - note to Snarly.
I found that calling the EZMat functions to add each node one by one (AddNode, ConnectNodes) was very slow - mostly because Poser is just slow at doing this stuff. The Poser Python interface generally stinks, apparently. I was generating a 127-node shader in .002 seconds and then it took 4 to 7 seconds to apply it via the EZMat API. Combined with the fact that the preview was also updated, this made a single material update require 8 to 14 seconds.
So I punted using the API at all and went back to writing a material file (once!). Then I just load it into the materials EZMat said to load them into. That's way faster. It takes less than a second. You may want to consider doing the same insize EZMat's API that other people will be using.
Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)