kypec
13th July 2010, 21:53
Can anybody tell me if it is alright to include same plugin more than once in a script?
I'm asking this because currently I'm trying to split my rather long chains of processing (in one big AVS) into separate smaller AVS files which would be Imported into main script (individual user functions in each AVS)
Example:
script A contains LoadPlugin("DePan.dll")
function funcA() {some code that needs DePan.dll}
script B contains LoadPlugin("DePan.dll")
function funcB() {other code that needs DePan.dll}
main script using both functionsImport("scriptA.avs")
Import("scriptB.avs")
funcA()
funcB()
Will Avisynth automatically recognize that same plugin has already been loaded and thus ignores the following loads? Or will it hog the memory with another copy of DLL?
Another problem I encounter is when using different versions of a plugin which use same functions.
Example:
script A contains LoadPlugin("RepairSSE2.dll")
function funcA() {some code that calls Repair function}
script B contains LoadPlugin("RepairSSE3.dll")
function funcB() {other code that calls identically named Repair function}
Which version of Repair function would be called in latter script? The one from SSE2 or the other from SSE3?
I'm asking this because currently I'm trying to split my rather long chains of processing (in one big AVS) into separate smaller AVS files which would be Imported into main script (individual user functions in each AVS)
Example:
script A contains LoadPlugin("DePan.dll")
function funcA() {some code that needs DePan.dll}
script B contains LoadPlugin("DePan.dll")
function funcB() {other code that needs DePan.dll}
main script using both functionsImport("scriptA.avs")
Import("scriptB.avs")
funcA()
funcB()
Will Avisynth automatically recognize that same plugin has already been loaded and thus ignores the following loads? Or will it hog the memory with another copy of DLL?
Another problem I encounter is when using different versions of a plugin which use same functions.
Example:
script A contains LoadPlugin("RepairSSE2.dll")
function funcA() {some code that calls Repair function}
script B contains LoadPlugin("RepairSSE3.dll")
function funcB() {other code that calls identically named Repair function}
Which version of Repair function would be called in latter script? The one from SSE2 or the other from SSE3?