Delay when recording vocals over backing track

When I use shift R - to record vocals over a backing track, the resulting vocal is delayed by a second or so. Why?

One second is “long” but there is always some latency (delay) through the computer.

If you’re not having trouble with a delay in your headphones while monitoring, go to Edit → Preferences → Audio Settings → Latency Compensation and you should be able to keep everything in-sync when the tracks are mixed.

That’s just compensation, it won’t remove the delay while monitoring/recording

There was a tutorial for finding the correct compensation but I’m not sure if it exists anymore…