Limit fps to either 24 or frame refresh rate