Latency Compensation: Device Setup-Vst Audio System-Advanced

I can’t find a complete reference about what everything in this section means…
In particular I would like to know what happens exactly if I check “Adjust for record latency”. Do I have to set “Record Shift” to a specific value or it does something automatically independently of this?
Thanks much for the help!