The lag...or latency, is not related to the computer, it's processor, its OS, or it's speed.
Latency is a function of the sound card, the driver, and settings.
First, be sure the buffers for midi and audio are big enough.... increase their size and try it again.
If that doesn't work, very likely the issue is the sound card and it's driver. Factory cards are notorious for latency when using soft synths. Sometimes using ASIO4ALL will work but often not well enough. In my case, not at all.
The best solution is a dedicated audio interface connected by USB and running real ASIO drivers. That investment generally solves the issues with latency.