# Multi/Sub-Objects material slow in IPR

**URL:** <https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138>\
**Category:** Issues\
**Created:** [June 1, 2021, 7:05pm UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138 "2021-06-01T19:05:28Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![hien\_tongduc](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hien\_tongduc](https://forums.chaos.com/u/hien_tongduc)\
**Post date:** [June 1, 2021, 7:05pm UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/1 "2021-06-01T19:05:28Z")

</div>

Hi!  
So the issue is that we have a workflow that heavily based on Multi/Sub-Objects (multimat) material.  
Normally a 20-30 MatIDs an objects is pretty normal  
Sometime the object may not have all of those ID but still using the same multimat and respect the IDs  
The issue appear when I have a multimat around 30 and when I use IPR to do the look dev any change the the material in the multimat seem to make the engine load the whole multimat instead of just the one I’m tweaking.  
This can be by-passed by disconnect the said material from the multimat and assign it back for the look dev, then plug it back in. (while the multimat still present in the IPR without the said material)  
With this the IPR run as fast as it can.  
So is there a way or this is what is has tobe?  
Can this be a request, wishlist?

---

<div class="post-metadata">

**Author:** ![yavor.rubenov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/yavor.rubenov/32/2946_2.png) [@yavor.rubenov](https://forums.chaos.com/u/yavor.rubenov)\
**Post date:** [June 2, 2021, 6:46am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/2 "2021-06-02T06:46:25Z")

</div>

Hello,

Generally reloading all the materials should be very fast as V-Ray clones the materials and textures but doesn’t need to reload any resources. Are you seeing some slowdowns and can you give some more details ?

Best regards,  
Yavor

---

<div class="post-metadata">

**Author:** ![hien\_tongduc](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hien\_tongduc](https://forums.chaos.com/u/hien_tongduc)\
**Post date:** [June 2, 2021, 7:16am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/3 "2021-06-02T07:16:00Z")

</div>

Well it only slow down if the material (A) plug into a multimat (B) and the multimat (B) is assign on the object.  
the slow down depend on the number and complexity of the multimat (B)  
If the material (A) alone assign to the object, the IPR run pretty normal.  
So I assume that the issue is within the link between the multimat and Vray IPR.

---

<div class="post-metadata">

**Author:** ![yavor.rubenov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/yavor.rubenov/32/2946_2.png) [@yavor.rubenov](https://forums.chaos.com/u/yavor.rubenov)\
**Post date:** [June 2, 2021, 7:16am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/4 "2021-06-02T07:16:59Z")

</div>

Can you share a scene or some video showing the slowdown ?

---

<div class="post-metadata">

**Author:** ![hien\_tongduc](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hien\_tongduc](https://forums.chaos.com/u/hien_tongduc)\
**Post date:** [June 2, 2021, 8:10am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/5 "2021-06-02T08:10:58Z")

</div>

[https://drive.google.com/file/d/1XLg4r5ZTThlDeDcMdXBASlFtVxI762\_X/view?usp=sharing](https://drive.google.com/file/d/1XLg4r5ZTThlDeDcMdXBASlFtVxI762%5C_X/view?usp=sharing)

Heres a Gdrive link to the video that quite demonstrate it

---

<div class="post-metadata">

**Author:** ![yavor.rubenov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/yavor.rubenov/32/2946_2.png) [@yavor.rubenov](https://forums.chaos.com/u/yavor.rubenov)\
**Post date:** [June 2, 2021, 8:19am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/6 "2021-06-02T08:19:21Z")

</div>

Hm you are using the Max Bitmap loaders - can you try to convert all of them to VRayBitmap to see if there’s any difference ? (There’s a command for this in the quad menu).

---

<div class="post-metadata">

**Author:** ![hien\_tongduc](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hien\_tongduc](https://forums.chaos.com/u/hien_tongduc)\
**Post date:** [June 2, 2021, 8:30am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/7 "2021-06-02T08:30:01Z")

</div>

Wow, It does fix it.  
Thanks a lot.  
Now I have to rewrite most of my custom script ☹

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [June 2, 2021, 8:33am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/8 "2021-06-02T08:33:44Z")

</div>

As a general note, you should always try and use our version of any of the max nodes, when available.  
We cannot touch the Max code, for obvious reasons, but we pour a lot of effort into the tech we can indeed influence: our own. 🙂  
I’ve had the same with both multimaterials and composite maps, in the past, and even without IPR, simply opening the mateditor (and then in rendering.).  
Moving away from max bitmap loaders \*always\* righted the wrongs. 🙂

---

<div class="post-metadata">

**Author:** ![hien\_tongduc](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hien\_tongduc](https://forums.chaos.com/u/hien_tongduc)\
**Post date:** [June 2, 2021, 8:52am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/9 "2021-06-02T08:52:13Z")

</div>

> [@\_Lele](#):
>
> As a general note, you should always try and use our version of any of the max nodes, when available.  
> We cannot touch the Max code, for obvious reasons, but we pour a lot of effort into the tech we can indeed influence: our own. 🙂  
> I’ve had the same with both multimaterials and composite maps, in the past, and even without IPR, simply opening the mateditor (and then in rendering.).  
> Moving away from max bitmap loaders \*always\* righted the wrongs. 🙂

Thanks  
I’ve just pickup the pacing from a very old workflow so everything need a refresh  
Talk about the composite map, yes that one is a mess to, too slow yet its still has it strength

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [June 2, 2021, 9:03am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/10 "2021-06-02T09:03:48Z")

</div>

It’s \*very\* quick if you convert the textures to tiled .TX. (same quad menu command, or manually with makeTX.exe in the bin folder.)  
That’s also for multi-sub, and in general all the texture-heavy work.  
Give it a try, see if it makes your workflow better.

---

<div class="post-metadata">

**Author:** ![hien\_tongduc](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hien\_tongduc](https://forums.chaos.com/u/hien_tongduc)\
**Post date:** [June 2, 2021, 9:40am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/11 "2021-06-02T09:40:19Z")

</div>

> [@\_Lele](#):
>
> It’s \*very\* quick if you convert the textures to tiled .TX. (same quad menu command, or manually with makeTX.exe in the bin folder.)  
> That’s also for multi-sub, and in general all the texture-heavy work.  
> Give it a try, see if it makes your workflow better.

Yeah, heard of it since the Arnold era.  
I believe that it has mipmap process already baked in so it will load and render faster.  
Thing is I need to build a workflow that is fool proof, minimize the technical knowledge so that the employees can pick at any level.  
Its not an easy job but I think the speed trade off can compensate the effort.

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [June 2, 2021, 9:49am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/12 "2021-06-02T09:49:59Z")

</div>

It likely requires a “publishing” step, from a department/task to the next.  
F.e., a texture artist can work however they please, so long as when they are done with their work “push the button” to convert their final assets to .Tx, and publish those.  
It loses some flexibility (due to the added step) but it also makes the process safer from accidental edits (as they’d need another publish/conversion done.).

Both the speed, the quality and the memory usage of the results will be much improved, however.

---

<div class="post-metadata">

**Author:** ![hien\_tongduc](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hien\_tongduc](https://forums.chaos.com/u/hien_tongduc)\
**Post date:** [June 2, 2021, 9:58am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/13 "2021-06-02T09:58:01Z")

</div>

> [@\_Lele](#):
>
> It likely requires a “publishing” step, from a department/task to the next.  
> F.e., a texture artist can work however they please, so long as when they are done with their work “push the button” to convert their final assets to .Tx, and publish those.  
> It loses some flexibility (due to the added step) but it also makes the process safer from accidental edits (as they’d need another publish/conversion done.).
> 
> Both the speed, the quality and the memory usage of the results will be much improved, however.

Thanks man  
Not all studios have a dedicated texture artist (it is some what per studio preferences), but it clearly can be applied to a template, ready to used asset which usually take up 70% of the projects.  
Great tips BTW, never could have though about it if some one didn’t mention it.

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [June 2, 2021, 10:42am UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/14 "2021-06-02T10:42:45Z")

</div>

Eh yes, i was making a generic example from my past history as Pipeline and LnR TD.  
Automation has generally been the key to proper adoption: if it’s a complex task to achieve, it only burdens artists more, and under pressure is quickly discarded.  
I \*hate\* repetitive, mindless tasks to be done manually (funnily enough, half my production history was precisely that. ^^), and i make “buttons” for myself all the time.  
I can’t ever rely on me doing things right when tired, but i can trust a procedure that way. 🙂

---

<div class="post-metadata">

**Author:** ![hien\_tongduc](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hien\_tongduc](https://forums.chaos.com/u/hien_tongduc)\
**Post date:** [June 2, 2021, 2:35pm UTC](https://forums.chaos.com/t/multi-sub-objects-material-slow-in-ipr/105138/15 "2021-06-02T14:35:21Z")

</div>

Hah I still have some tool from 2012 just because they do what I told them to and packed in a small box rather than pages of buttons 😄
