zinga
19th September 2011, 05:54
I've got a SetMemoryMax(128) call at the beginning of my Avisynth script, but it seems avs2yuv.exe is taking around 500MB of memory.
My machine has 4GB of RAM installed - I believe Avisynth defaults the limit to 512MB, which seems oddly close to the avs2yuv memory usage.
The script itself is fairly simple (source -> resize -> trim) so shouldn't need a lot of memory.
Is avs2yuv doing its own buffering or similar?
On a related note, is there a way to set a default memory limit? All of my scripts are fairly simple, so don't need much, and I tend to forget putting a SetMemoryLimit() at the beginning of every small script.
I was thinking that perhaps a .avsi file in the plugins directory should do it, but due to avs2yuv taking more memory, I'm not sure how to correctly test it.
Thanks!
My machine has 4GB of RAM installed - I believe Avisynth defaults the limit to 512MB, which seems oddly close to the avs2yuv memory usage.
The script itself is fairly simple (source -> resize -> trim) so shouldn't need a lot of memory.
Is avs2yuv doing its own buffering or similar?
On a related note, is there a way to set a default memory limit? All of my scripts are fairly simple, so don't need much, and I tend to forget putting a SetMemoryLimit() at the beginning of every small script.
I was thinking that perhaps a .avsi file in the plugins directory should do it, but due to avs2yuv taking more memory, I'm not sure how to correctly test it.
Thanks!