implement setDesiredFrameRate