Created variables for fps limit and optimal frame length