Vray Proxy Workflow - Very Slow Startup times, need to resolve..

Wow. I would try Morbid Angel’s idea of combining as many nodes as you can into one.

Oh, also might be a good plan to try to render (could just do a 3dsmaxcmd render from the command line locally), as perhaps some of that delay is the preview and other interactive aspects of the load.

Speaking of which I would try disabling all the previews of the proxies completely. I would assume that this would be utterly ignored when rendering, but assuming rarely works in anyone’s favor.

You could also run a quick test and do an export to vrscene and render (via the VRay menu in Max ). This would bypass Max entirely and render with VRay Standlone. Note that this does have numerous limitations and gotchas, but they are surmountable if you have time to figure them out.

Thanks for the scene.
Some preliminary tests and results I got:
- as you’ve noticed - having the scene on a local drive is faster. The slow preparing loading part looks related to some work 3ds Max is doing on resolving asset paths (in this case the proxies). It looks to me as if there’s something suboptimal there in case of thousands of scene objects with asset paths. Will try to dig a bit more into it and maybe contact Autodesk on it.
- having the proxies on a network drive can be quite slow indeed. In some short test I did here I see somewhere between 6-10x slow down on reading some of the proxies data. Unfortunately - all proxies are loaded even hidden ones and all of them need to read some data from the file.

We have some ideas on improving the loading time for proxies especially in such cases but those will take some time.

I tested the vrscene and VRay Standalone render job a few days ago. It is sent via Deadline to the farm as 2 jobs, the first is the creation of the vrscene file and the second is the rendering job. The rendering job did just pick up and render right away with no ‘Startup time’, however, the job to create the vrscene file had the same 25 minute Startup time (and only a 32 second ‘Render Time’ in making the vrscene) so it was just a trade off in a way.

I have tried with all Proxies set to display as Box, this had the same performance when opening the scene.

Is it 25 min startup time per frame or for the whole thing? I think the trade off is you load the scene once output vrscene and then render the actual frames fast. Also not sure, but I think in max you can load vrscene as a container (I can’t remember, been long time since I used max) but in that case you can write your scene directly from max ui when you have your scene loaded, then submit a separate scene with the container loaded to farm already.

Yes, you can tell Deadline SMTD to create the vrscene locally, which would mean the scene was already loaded, and would likely avoid a lot of the delay.

However, vrscene really is a can of worms. Just be prepared for weird bugs where things render differently with standalone than with Max. We went through a lot of this lately, reporting numerous bugs. I don’t think any are fixed yet (other than the ones in Phoenix, as those guys seem to be some kind of super heroes and churn out fixes in no time).

Most of the differences involve bugs when using render elements, also VRayDisplacementMap renders a little differently (offset does not work the same), and the Max procedurals render differently, etc.

The fact that standalone loads so fast makes me think this is a Max slowdown. Perhaps set the proxies to display NO preview at all (I guess point mode is the most rudimentary).. And anything else you can think of that would limit any processing Max would need to do when loading the scene. Definitely disable all material preview (set to shaded Object Color in the Display Tab of the command panel seems to do a good job of this).

That’s why I would suggest to load vray scene as a container into max and still utilize the render aovs from max interface. Almost treating vray scene like vray proxy in a way.

It’s being profiled right now, but it looks like Max may have indeed something to do with it.
Dmitry’s solution may well be a fix, as Max in that case would be essentially bypassed.
It’s not official yet, though.

This long wait is related to Max’s missing paths cache. You can test turning it OFF before opening the scene. Especially with locally cached proxies it should be noticeably faster.
You can turn it off with the following MAXScript:
missingPathCache.cacheEnabled=false

Some more details on it here: Help

Hi there,

Turning this off speeds loading up considerably. The file now opens in sub 2min from the network share and 1min locally.

Do you know if turning it off is permanent?

It should be. You can start a fresh Max and type just:
missingPathCache.cacheEnabled

it should print the current state.

Perfect, seems to work great.

Would I ideally need to disable this on all render nodes on the farm also to speed up their loading of such scenes?

Thanks again

Yes, it’s per Max user.

Any clue why that cache is so slow? Are they doing something stupid like iterating over an array (in maxscript even) rather than using a hash table, tree, or other more efficient structure?

Is it just the larger number of unique assets that slows it down?

Can’t really say as I only see the disassembly and it is not an easy read :smile: For what I can see - the cache seems to be spawning new threads to do the actual resolution but it seems it spawns a bit too much of them.