Itoo Software Forum

Author Topic: Forest Ivy memory leak Corona Render  (Read 12504 times)

M_SLAB

  • Newbie
  • *
  • Posts: 3
Forest Ivy memory leak Corona Render
« on: October 04, 2024, 09:45:31 AM »
Hi, I've experienced a lot of memory leaks where Corona attempts to use more than 256gb of RAM when I render or interactive render with new Forest Ivy objects and then starts paging on the HDD until the PC is unresponsive . This happens about 30-40% of the time, I'm not sure if the issue is with FP or Corona. posting this issue in their forum too. I've had this issue on multiple PCs, only since adding a forest Ivy object to the scene.
3ds max 2024.2
Corona 12

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4593
    • iToo Software
Re: Forest Ivy memory leak Corona Render
« Reply #1 on: October 04, 2024, 10:09:30 AM »
Hi, Currently ForestIvy doesn't have instancing support for Corona.
That means geometry is converted to an huge mesh, and depending of its size, it would require a lot of RAM.

We are in contact with Corona team so they implement the changes required to support instancing.
Unfortunately this is someting we cannot do from our side (as with other render engines), because Corona has not a SDK or support for third-party plugins.

Anyway, what is the size of your ForestIvy ? 256 Gb seems a lot, even for a large mesh.
You can check it setting Display->Mesh, and checking number of vertices/faces (right click->Object Properties).

Carlos Quintero
iToo Software

M_SLAB

  • Newbie
  • *
  • Posts: 3
Re: Forest Ivy memory leak Corona Render
« Reply #2 on: October 04, 2024, 10:28:41 AM »
Thanks for a quick reply. ivy object has about 127k leaves and 84k branches which gives about 9.5m faces. A lot but sometimes this renders fine, only using 60gb ram, other times it wants more than 256.

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4593
    • iToo Software
Re: Forest Ivy memory leak Corona Render
« Reply #3 on: October 04, 2024, 10:45:42 AM »
You can try to use a copy of the object converted to Editable Mesh for render, and disable ForestIvy while you don't need to modify it.
That would improve render performance and stability.

Theorically ForestIvy with instancing disabled works as an Editable Mesh, but i'm not sure how Corona handles these large meshes internally.

« Last Edit: October 04, 2024, 10:48:36 AM by iToo »
Carlos Quintero
iToo Software

PathTracer

  • Newbie
  • *
  • Posts: 7
Re: Forest Ivy memory leak Corona Render
« Reply #4 on: October 04, 2024, 11:22:34 AM »
Hi!

I good solution for Corona could be to transform the ivy to Mesh and convert it in Corona proxy.
I am doing this on my project today.

Dionysios -

M_SLAB

  • Newbie
  • *
  • Posts: 3
Re: Forest Ivy memory leak Corona Render
« Reply #5 on: October 04, 2024, 11:36:57 AM »
Thank you both! I'll use this as a solution for now.

Marcus.