# Hi-poly scene, Hi-ram usage issues

**URL:** <https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438>\
**Category:** Issues\
**Created:** [March 17, 2008, 12:00pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438 "2008-03-17T12:00:55Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clifton\_Santiago](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/clifton_santiago/32/41125_2.png) [@Clifton\_Santiago](https://forums.chaos.com/u/Clifton_Santiago)\
**Post date:** [March 17, 2008, 12:00pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/1 "2008-03-17T12:00:55Z")

</div>

I have a scene with just over 1 billion polys, with lots of 3d displacement (grass) and hundreds of vray proxies (trees). At 2400x1800 px, during LC (default values w/glossy acceleration), ram usage is around 6-7gb, which seems reasonable. I have tried to do DR stills via BB, but the scene keeps timing out at 600 minutes. I have tried doing DR locally but the two nodes we have with 16gig ram (besides my workstation) keep dropping out when LC is calculated (and coming back on, dropping out, etc.). If I try IR/brute force, the nodes display their IR as black buckets, and then I get an unhandled exception error. I am not exceeding my ram amount on the machines in question, so I am wondering what the problem is…

I think if I pre-calc locally, or on one of the nodes, then do DR with the loaded lightmaps it will work, but of course thats slower than using DR to get through the IR pass. Any ideas?

---

<div class="post-metadata">

**Author:** ![ene.xis](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ene.xis/32/61710_2.png) [@ene.xis](https://forums.chaos.com/u/ene.xis)\
**Post date:** [March 17, 2008, 1:11pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/2 "2008-03-17T13:11:34Z")

</div>

i ve experienced some crazy ram usage last week also when doing large stills, and the only way i found to try to control the ram was to increase the 3d displacement edge length…

---

<div class="post-metadata">

**Author:** ![Fekta.studio](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/fekta.studio/32/2921_2.png) [@Fekta.studio](https://forums.chaos.com/u/Fekta.studio)\
**Post date:** [March 17, 2008, 1:33pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/3 "2008-03-17T13:33:10Z")

</div>

> [@VRay Sun, Sky and Physical Camera video tut + Bonus Script!](https://forums.chaos.com/t/vray-sun-sky-and-physical-camera-video-tut-bonus-script/13145/285):
>
> i ve experienced some crazy ram usage last week also when doing large stills, and the only way i found to try to control the ram was to increase the 3d displacement edge length…

exacly 🙂 same here.. increase the edge do the trick here u should try.. and psl report back , maby is different issue..

---

<div class="post-metadata">

**Author:** ![Clifton\_Santiago](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/clifton_santiago/32/41125_2.png) [@Clifton\_Santiago](https://forums.chaos.com/u/Clifton_Santiago)\
**Post date:** [March 17, 2008, 3:13pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/4 "2008-03-17T15:13:04Z")

</div>

Hey, thanks. I’ll try the edge length. I did get the IR and LC to calculate on one node, but the render pass doesn’t work. I get an error saying “Warning: Camera FOV is too small, possible round-off errors” AFter that it just renders a black frame buffer.

WTF? How is 24mm too small? Its never been too small before. I think there’s a bug here somewhere. I can hear it scurrying around in the wall, but can’t see it…

---

<div class="post-metadata">

**Author:** ![ene.xis](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ene.xis/32/61710_2.png) [@ene.xis](https://forums.chaos.com/u/ene.xis)\
**Post date:** [March 17, 2008, 3:34pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/5 "2008-03-17T15:34:29Z")

</div>

yeah…that sounds mega weird!  
but i ve seen crazy stuff latelly when ram goes sky high!

---

<div class="post-metadata">

**Author:** ![Clifton\_Santiago](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/clifton_santiago/32/41125_2.png) [@Clifton\_Santiago](https://forums.chaos.com/u/Clifton_Santiago)\
**Post date:** [March 18, 2008, 9:10pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/6 "2008-03-18T21:10:01Z")

</div>

follow-up: I increased edge length to 6 and it helped. But what helped even more was globally disabling displacement. I have 6 renderings due on Thursday, so no time to keep screwing around with long render times. I’ll have to work into the grass and gravel in photoshop.

---

<div class="post-metadata">

**Author:** ![ene.xis](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ene.xis/32/61710_2.png) [@ene.xis](https://forums.chaos.com/u/ene.xis)\
**Post date:** [March 18, 2008, 9:26pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/7 "2008-03-18T21:26:38Z")

</div>

yeah…i know the feeling…☹  
i ve been managing to get the displacement done by disabling the camara dependency and increasing the edge lenght to values between 8-20 (!!)  
with satisfactory results. Nontheless it looks like displacement is becoming way too much memory hungry then i d guess at high output dimensions.

---

<div class="post-metadata">

**Author:** ![Paul\_Oblomov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/paul_oblomov/32/41296_2.png) [@Paul\_Oblomov](https://forums.chaos.com/u/Paul_Oblomov)\
**Post date:** [March 18, 2008, 9:27pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/8 "2008-03-18T21:27:55Z")

</div>

I love 2d displacement. It doesn’t eats your memory during rendertime with its “precomputing displacement”.

---

<div class="post-metadata">

**Author:** ![Clifton\_Santiago](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/clifton_santiago/32/41125_2.png) [@Clifton\_Santiago](https://forums.chaos.com/u/Clifton_Santiago)\
**Post date:** [March 18, 2008, 9:30pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/9 "2008-03-18T21:30:21Z")

</div>

I can’t even get 2d displacement to work in such a complex scene. Max just crashes immediately upon pressing render.

---

<div class="post-metadata">

**Author:** ![joconnell](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joconnell/32/36063_2.png) [@joconnell](https://forums.chaos.com/u/joconnell)\
**Post date:** [March 18, 2008, 9:32pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/10 "2008-03-18T21:32:36Z")

</div>

Would it not be possible to calc the lc and irmap with displacement off and turn them on for the actual render? Or will the slight differences in object shape cause major inaccuracies? Could you sub in a push or normal max displace as a go between in the calc stages?

---

<div class="post-metadata">

**Author:** ![ene.xis](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ene.xis/32/61710_2.png) [@ene.xis](https://forums.chaos.com/u/ene.xis)\
**Post date:** [March 18, 2008, 9:33pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/11 "2008-03-18T21:33:35Z")

</div>

i know paul…but some (bad) meshes just don t like the 2d disp…😉

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [March 18, 2008, 9:40pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/12 "2008-03-18T21:40:25Z")

</div>

If you are only displacing by a small amount, it might be possible to calculate the light cache/irradiance maps without displacement and only turn this on for the final render.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![panthon](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/panthon/32/40984_2.png) [@panthon](https://forums.chaos.com/u/panthon)\
**Post date:** [March 19, 2008, 8:40am UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/13 "2008-03-19T08:40:16Z")

</div>

> [@WWX](#):
>
> If you are only displacing by a small amount, it might be possible to calculate the light cache/irradiance maps without displacement and only turn this on for the final render.
> 
> Best regards,  
> Vlado

We use this trick all the time and it works very well. Some time ago, we suggested the possibility to add a switch whose purpose would be ignoring displacement during IM and LC passes. For some technical reason, I see it’s hard to implement, so turning off disp, precalculate, turn on displacement, render would be our only option.

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [March 19, 2008, 11:15am UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/14 "2008-03-19T11:15:49Z")

</div>

> [@hzs\_id](#):
>
> I can’t even get 2d displacement to work in such a complex scene. Max just crashes immediately upon pressing render.

Attach all your displaced objects to each other in one editable poly and make them use the same modifier - it’s a bit of effort, but ive found it starts crashing because of the number of displacement modifiers before anything else becomes a factor.  
If youve got one or two different displacement maps but 50 objects that its spread over, it’ll make such a massive difference.

---

<div class="post-metadata">

**Author:** ![Clifton\_Santiago](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/clifton_santiago/32/41125_2.png) [@Clifton\_Santiago](https://forums.chaos.com/u/Clifton_Santiago)\
**Post date:** [March 19, 2008, 11:26am UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/15 "2008-03-19T11:26:26Z")

</div>

Nice tip. I’ll give it a try. Grass just looks like ass without it…

---

<div class="post-metadata">

**Author:** ![dcullipher](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@dcullipher](https://forums.chaos.com/u/dcullipher)\
**Post date:** [March 19, 2008, 7:07pm UTC](https://forums.chaos.com/t/hi-poly-scene-hi-ram-usage-issues/17438/16 "2008-03-19T19:07:45Z")

</div>

I wanted to also mention, but I am sure you have it set, to crank your memory in the VRAY settings up very high to 3G or so. ALso we have scenes that required 12G of ram to render so VRAY would crash on an machine with 8G what we ended up doing is setting the Virtual memory to a fixed amount of 16G and it worked fairly well without slowing down the render much compared to the machines with 16G of real ram. The biggest ting is it stops it from a hard VRAY memory crash.
