I tried the
Universal Motion Detection script and it doesn't loop like the small samples. I'll have fiddle with all the settings to get better results, but it is working as I'd expect so far.
For the
not enough memory error from the
drawtest.lua test script, I removed everything up to that point and added a
print i inside the
for loop. It gets to 2000 and the plots the pixels as it should, then clears the screen and crashes in the next loop (preparing to draw 1000 random lines) at iteration 307.
The only functions being called in the
for loops are
math.random and
draw.add, so my impression is the problem is in the "draw" routines... maybe
draw.clear isn't freeing memory properly?
Update: I made a mistake -- wasn't using the Universal motion detection script linked above, but rather the
Multipurpose Motion Detection Scrpt. Sorry.
I just did a few other tests with it using the
MD_Testv3 "timing" program. My first shots gave a response time of 600-700ms. Then I added a "shoot_half" line and locked the focus before running the script and got results of 120-220ms over 5 shots.