Need to find a better way to limit fps