out of core problem

Situation: I have a big scene, that uses almost 90Gb RAM out of 128. At some point I decided to convert plant textures to corona bitmap and now I can’t render it at all - 128gb isn’t enough. That’s when I fould out that plants textures were second most ram sucker in scene.

5100x3600 resolution, plants (trees/bushes) are far away from camera ang biggest plant in frame isn’t more than 100 or 150px.

  1. Out of core made exactly for such situations? Correct? Object occupies only small portion of frame so can be used textures with less resolution? Then why this isn’t working?
    Fixed by manually rescaling textures to 1k by biggest side, now it fits in 60-70 Gb.

  2. Why after converting to corona bitmap it uses much more RAM?

  3. Upon scene loading corona creates mipmaps in temp folder. In my case after rescaling some textures it something like 10 or 14Gb. This add a minute or two to scene load time. But when I start render, almost everything there is deleted and created new but now size is like 1,5Gb.

What’s happening?
If all those maps created during scene load and increasing load time, why corona not using them and create new and by this increasing render start time?
If mipmaps created per view, which increase render start time, then why it creating it on scene load, and increasing load time?

  1. Are tx textures workig fine? If I convert textures to tx, will it work better? An by the way, I can’t open tx textures from corona bitmap.

Hi,

Ad 1 - Yes: https://support.chaos.com/hc/en-us/articles/9477508142993-Out-of-core-Rendering-for-textures-3ds-Max

Ad 2 - This is most likely caused by the Normals filtering option in the Corona Physical Material. The default “Roughness modulation” setting can be RAM-demanding. You can lower RAM usage by running the Corona Converter and under “Set normals filtering” choosing “Linear” or “None”.

Ad 3 & 4 - I will try to look into this and provide some explanation.

Sorry for the delay.

Ad 3 - When a scene is loaded, Corona creates mipmaps and stores them on the HDD, so the temp folder is large. Once you render, it loads the required mipmaps into RAM and removes them from the HDD, so the temp folder becomes smaller. The mipmaps stay in RAM and are not dumped back to disk.

Ad 4 - Using TX textures has no advantage in Corona. Right now they are handled the same way as other format textures.

Hi Maru, how much are we ‘roughly’ talking :- )? This is surprising to read but I also have lot of memory issues lately, esp. in my 96GB PC. And it seems to be all textures.

Hi Juraj, sorry for the delay, I just checked this and from my initial tests it looks like the RAM usage increase is quite significant. The Corona RAM usage can increase by 2-3x (33 vs 12.4GB) and Max+Corona 2x (50.4 vs 27.7GB). This is of course scene-dependent. I tried with one “production” scene (interior+exterior) and one “synthetic” scene (scattered boxes with many Cosmos materials).

This was surprising to me so I’ll check with the devs if this is something we could improve. Or perhaps reconsider whether roughness modulation is a good default.

(Report ID=CMAX-2207)

2-3 x WOW!
Is there a way to mass change that setting for all scene shaders ?

Yes, right-click in viewport > Corona Converter > there you can select between “roughness modulation” (the default using most RAM), “linear”, or “none”.

what are the downsides of switching to “linear” or “none”?

It affects the appearance of textures, mostly when seen from far away: https://support.chaos.com/hc/en-us/articles/19161682524305

Hah so this is why my latest scenes are so troublesome. I will do some tests myself.

Please share your results!