PDA

View Full Version : Question about AVs Formatting


ChronoCross
16th September 2004, 19:51
I was thinking of an interesting question the other day and though to myself. "When writing a AVS file what would be the fastest way to do it?" the I began comparing several of my AVS's. Here's what I came up with.

LoadPlugin()
Source()
Deinterlacing()
Sharpening()
Smoothing()
Crop()
Resize()
Subs()

Now this is the way most people would write their script however I did a test on my theory and came up with the following.

Function IVTC { Deinterlacing() }
Function Cresize { crop().resize() }
Function Processing { Sharpen().Smooth() }

Source().IVTC().Processing().Cresize().Subtitles()


and this script not only came out better looking but it was 2 fps faster. Can anyone explain why this is, and if there is anything else that can improve upon it.

Note The same number of filters and same settings were used on both scripts.

stickboy
16th September 2004, 21:53
Wow. I'm surprised the parser even accepts that. Functions typically need parameters...

Uhm, in the first case you sharpen and smooth before cropping and resizing, but in the second case you do the cropping and resizing first. That certainly could affect the speed...

If that's not it, then post your exact script.

ChronoCross
16th September 2004, 22:31
Heh it's not an actual script. just bases on what it's doing. I edited the script about the resize part cause I messed up. their both in the same order, which is why it's interesting that the second one goes faster.

stickboy
17th September 2004, 04:57
Please post your exact script...