PDA

View Full Version : SetMemoryMax


DDogg
15th April 2003, 16:27
1> I seem to remember a thread where this was changed to automatically use a third of the available memory. Is my recollection correct?
From docs:
SetMemoryMax(int): Sets the maximum memory that AviSynth uses (in MB) v2
In some versions there is a default setting of 5MB, which is quite low. If you encounter problems (e.g. low speed) try to set this values to at least 32MB.

sh0dan
15th April 2003, 17:59
Close :)

Avisynth uses minimum 16MB, otherwise available physical memory/4, no fixed maximum.

DDogg
15th April 2003, 18:42
Thanks for the reply and clarification. So, it sounds like SetMemoryMax is legacy and no longer needed in any script. At least I can't see where it would be needed given the automatic allocation. Please let me know if I am missing something obvious.

sh0dan
15th April 2003, 18:58
In some cases it is actually quite useful - for instance, when opening one or more AVS files in After Effects, it is nice to be able to control the memory usage.

DDogg
15th April 2003, 19:12
Oh, yeah, In that context I now see it is useful for limiting the amount of memory used. Before I was concerned with allocating more memory for source buffering. Thanks again for the clarification.