"Ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead" (deja vu). I just start with the basic settings and bump upward until everything starts working, no magic, just experimentation so no exactly correct answer, depends on your set up completely.