Notifications
Clear all

[Closed] Maxscript Iterations slowing down

I have a pretty complex tool developed in MaxScript, and when running certain functions iteratively, I noticed that each time I run a set of iterations, it takes longer to compute than the previous set. I have undo turned off when I run the code, and doing a manual GC() after each set of iterations doesn’t help either.

The functions are doing a lot of manipulations to custom attribute parameters or arrays. Is it possible there’s a memory leak somewhere when using CAs?

Thanks!

4 Replies
 PEN

Would have to see code to know what is going on. I have not experienced what you are suggesting but I may never have tried what you are doing.

I’d post code if I could, but unfortunately the tool is almost a full-blown program in itself, with many functions calling each other from many different structs, and the problem could reside anywhere in there.

Thanks.

Is this a new thing with an updated Max version, or does it happen in general, on the Maxx version you started to code the tool ?

So far I’ve only tested for this issue with Max 2014, but that sounds like a good idea to try to replicate the problem in some other versions as well.

Thanks.