View Single Post
Old 22nd October 2007, 03:20   #654  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
@mroz,

Simply put it's a crap shot, i.e. roll the dice and pray.

MVTools stores internal state so when accessed in a normal sequential manner it can reuse previous calculations to save time. Using the IDX parameter allows different MVAnalyse() instances to share the same calcs if available.

If you don't set IDX then you cannot share the calc so there can be no speed up but then they cannot be stuffed up.

If the accesses are not sequential then the state is again useless and a full recalc happens. No stuff ups here.

Things go wrong when the shared calculations are not appropriate. Even without an IDX hitting the same MVAnalyse instance twice at just the right time can confuse things.
IanB is offline   Reply With Quote