On 07/11/2014 at 03:51, xxxxxxxx wrote:
Hi
I have a script project where I'm procedurally generating a high poly mesh - saving it to an external file, and then loading it in at render time, freeing up the editor to have only a low poly version of the mesh.
However, for large models, I notice that when the program goes to regenerate another model - C4D seems to grind to a halt or crash. I'm wondering is there something I should be doing to free up memory, flush caches etc - or something to optimise the program.
Here's what the program does..
1. Generate high mesh, save it to an external doc, delete from current scene - keep low poly version.
2. When external rendering - load up doc with high poly version, clone and grab it, insert into scene passed to renderer. (After rendering - the doc that was passed to the renderer should disappear / free up its memory?)
3. Regenerate another model - C4D very slow or crashes.