Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] General Discussion => Topic started by: AM_visualization on 2017-11-08, 23:41:31

Title: system low RAM
Post by: AM_visualization on 2017-11-08, 23:41:31
Hi,

i've a question, is possible that i out of ram with this simple scene?
there are only a few boxes and i rendering VR mode 8k....any suggestion....
Title: Re: system low RAM
Post by: PROH on 2017-11-08, 23:48:04
Seems like you got a bunch of render elements eating up 6,9GB
Title: Re: system low RAM
Post by: AM_visualization on 2017-11-09, 00:00:09
Seems like you got a bunch of render elements eating up 6,9GB

Hi, is the first things that i control....but there isnt any render elements, only alpha in frame buffer
Title: Re: system low RAM
Post by: Juraj on 2017-11-09, 00:10:55
I am not sure if those elements aren't tied to denoising (so invisible to user).

Anyway, even without those "elements", that would be damn 20GB for 40k polies.. so something is very wrong, even though Corona is super hungry renderer.

Btw, does it throw this message if you restart 3dsMax and hit render first time ? There is big issue with Corona where it won't flush all the data from subsequent renders, issue that's apparently tied to 3dsMax but one that we have to live with for now.
You can try exporting the scene to Corona Standalone to see the actual 'cost' of scene without all the 3dsMax garbage.

Nonetheless hopefully this can be solved in future as other renderers found some way to flush this data.
Title: Re: system low RAM
Post by: AM_visualization on 2017-11-09, 00:37:30
I am not sure if those elements aren't tied to denoising (so invisible to user).

Anyway, even without those "elements", that would be damn 20GB for 40k polies.. so something is very wrong, even though Corona is super hungry renderer.

Btw, does it throw this message if you restart 3dsMax and hit render first time ? There is big issue with Corona where it won't flush all the data from subsequent renders, issue that's apparently tied to 3dsMax but one that we have to live with for now.
You can try exporting the scene to Corona Standalone to see the actual 'cost' of scene without all the 3dsMax garbage.

Nonetheless hopefully this can be solved in future as other renderers found some way to flush this data.

i will try with the standalone, but how have you said i noticed that the message of low ram appear during denoising..
Title: Re: system low RAM
Post by: Ryuu on 2017-11-09, 10:16:34
Frame buffer / render elements eat a lot of memory on high resolutions. Unfortunately 3ds Max allocates itself some more memory for the elements internally, which should be something like 1 GB in your case. That makes 8 GB in total consumed just by frame buffer.

Since you have only 40k unique polygons, I doubt that the geometry is a significant memory consumer. My guess would be some high resolution textures.

Corona allocates some more memory during the denoising phase since it needs some temporary working buffers to copy the render elements to for additional processing (and storing the denoised result). This is something we'd like to fix, but there was unfortunately no time to implement it yet.
Title: Re: system low RAM
Post by: AM_visualization on 2017-11-09, 11:14:12
Frame buffer / render elements eat a lot of memory on high resolutions. Unfortunately 3ds Max allocates itself some more memory for the elements internally, which should be something like 1 GB in your case. That makes 8 GB in total consumed just by frame buffer.

Since you have only 40k unique polygons, I doubt that the geometry is a significant memory consumer. My guess would be some high resolution textures.

Corona allocates some more memory during the denoising phase since it needs some temporary working buffers to copy the render elements to for additional processing (and storing the denoised result). This is something we'd like to fix, but there was unfortunately no time to implement it yet.

hi there isnt any kind of texture in the scene, only solid color....
Title: Re: system low RAM
Post by: Ryuu on 2017-11-09, 12:36:51
That's weird. Can you share the scene for us for internal testing? You can use the private uploader from my signature for that.
Title: Re: system low RAM
Post by: AM_visualization on 2017-11-09, 12:57:17
That's weird. Can you share the scene for us for internal testing? You can use the private uploader from my signature for that.

sure i will do it this afternoon!thank you
Title: Re: system low RAM
Post by: AM_visualization on 2017-11-09, 18:29:24
scene uploaded

1510248444_MM-studio-volumi.max
Title: Re: system low RAM
Post by: Ondra on 2017-11-10, 14:44:36
Hi,
I checked your scene, and there is (unfortunately) nothing wrong there at the moment. Corona is currently a "bit" memory hungry (100B per pixel for denoising, 72B per pixel for random sampling). We have some optimizations planned, do not worry ;). The memory usage I got was consistent with this
Title: Re: system low RAM
Post by: AM_visualization on 2017-11-10, 15:28:44
Hi,
I checked your scene, and there is (unfortunately) nothing wrong there at the moment. Corona is currently a "bit" memory hungry (100B per pixel for denoising, 72B per pixel for random sampling). We have some optimizations planned, do not worry ;). The memory usage I got was consistent with this

ok thanks Ondra, at the moment with this kind of scene i disabled the denoising...
unfortunately now i'm working on another VR image an with this i cant disable it......:)
thanks for the support
Title: Re: system low RAM
Post by: Ondra on 2017-11-10, 16:16:23
one extreme solution would be to switch random sampler from DMC to per pixel xorshift64*. That would bring the usage down by another 4G, but would slow down stuff a lot (more noise)
Title: Re: system low RAM
Post by: maru on 2017-11-10, 17:33:22
Another idea would be probably rendering in regions/strips, for example through BB or Deadline. Just be careful with denoising then - remember to merge first, and then denoise.
Title: Re: system low RAM
Post by: Charlie Nicols on 2017-11-20, 17:56:33
May not be particularly helpful but I would look into getting more RAM -  64GB is the minimum I would spec a PC when rendering with Corona, especially for VR.


Title: Re: system low RAM
Post by: James Vella on 2017-11-22, 08:22:38
Just to add to this, I ran into this issue (my current workstation is a laptop with max memory of 32gb). I needed to keep the render elements I was using but was exceeding my ram limit so I found that by downsizing any texture over 4k by half this drastically reduced the memory consumption from 98% to 30% and I was able to finish the job. I do recommend more ram atleast 64 to keep artistic freedom and visual appearance, but sometimes things must be done to utilise your setup I suppose. A good script I found to do this automatically (resizes 1k,2k or 4k, copies the bitmaps to a new folder and relinks them for you including bump,spec,gloss maps etc) is found here
https://renderpeople.com/plugin/

Be aware this will not work for CoronaBitmap - only standard bitmaps