Apple motion tracking the moon.

Motion’s tracker leaks absurd amounts of RAM

When using apple motion’s tracker, even a few hundred RAW frames can exceed the RAM capacity of any Mac you can buy right now.

Why is it doing this? Well, when starting tracking, it works nicely, but then it’ll just keep loading all subsequent frames into memory. So, if you have 3 lookahead frames set, it’ll start with frames 2-4, set a keyframe for frame 2, then proceed with frames 3-5, set a keyframe for frame 3 and so on. That’s fine, but it doesn’t release the memory of the images it’s already tracked!

Frame 1Frame 2Frame 3Frame 4Frame …Frame n
Frame 1๐Ÿ“๐Ÿ‘€๐Ÿ‘€๐Ÿ‘€
Frame 2โŒ๐Ÿ“๐Ÿ‘€๐Ÿ‘€๐Ÿ‘€
Frame 3โŒโŒ๐Ÿ“๐Ÿ‘€๐Ÿ‘€๐Ÿ‘€
Frame 4โŒโŒโŒ๐Ÿ“๐Ÿ‘€๐Ÿ‘€
When tracking over multiple frames, Motion will load subsequent frames, but not release them anymore!

Sure, I can make a tracking proxy, but why? Why can’t it just look at the number of frames I specified (four, considering three lookahead frames I specified) instead of loading four-hundred frames until my computer crashes? If the early frames are tracked just fine, it clearly doesn’t need all of the frames for tracking, but only 3.

Whoops.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *