Mid point between levels on subsurf modifier
As Timaroberts said, the preview and render settings need to match for it to be the same. This means that it will not work if you are using the adaptive subsurf setting on the newer versions of blender.

Occasionally you will need to reload blender before the viewport preview matches the final render when the preview and final are the same.