hi
Some lag could be coming from internet but it should clear itself on a regular basis. if it doesn't, then it's likely something on your computer. Unfortunately, it will be very hard to diagnose as it can be dozens of things.
I would recommend closing everything when you play, especially those pesky services that run in background.
-wgticon