I concur with the advice given above.
In addition, many times laptops have INSANE latency induced by the Wi-Fi adapters/transceivers. Many folks temporarily disable their Wi-Fi adapters on their laptops when getting ready to do a session in Sonar, then turn it back on when through with the Sonar session.
As far as audio interface settings go, a good place to start would be:
Audio Interface: Sample Rate 44.1 k or 48 K, ASIO Buffer Size of 128
Sonar: Sample Rate must match setting on audio interface (44.1 or 48, whichever you set it to), Record-Bit-Depth 24 bits, Driver Mode of ASIO.
Once you get the above settings set, look in the Sonar Preferences for the reported Total Roundtrip Latency value - you want to get that to be at or just slightly under 10 milliseconds, for reasonable balance between audio quality and CPU demands.
If still having problems, then you could also adjust the Record I/O Buffer Size and the Playback I/O Buffer Size values from the default of 250 k (might be 256k) up to 500 k (or 512 k). That gives it a bigger set of buffers to work with, and that helps some folks too.
Bob Bone