I remember seeing posts on this before but can't find anything in the search so here goes..

I know a longer barrel will produce more velocity (IIRC about 10fps per inch after 10 inches??) but I also recall something on finding an optimal barrel length, i.e. the point when the pellet stops accelerating and friction starts to slow it down...Is there a formula for this?

Cheers
Greg