If your games are lagging, a few adjustments can make a big difference. Start with the basics, then move on to graphics settings and hardware.
Close unnecessary background programs, such as your web browser and image editors. Your computer may simply not have enough RAM, or other applications may be hogging all the processor power.
Make sure the game is not running with more visual effects than your graphics card can handle. Turn off Anti Aliasing completely and disable Vertical Sync (often called V-Sync). If that is not enough, you can lower the resolution, which makes the image a little blurrier but renders faster, or reduce effects like shadows, glow, and motion blur for a crisp image with fewer frills. A combination of both often works best.
Some computers simply lack the power to run modern games well. A machine around $400 usually is not suited for gaming, while one near $1,000 is far more capable. A $1,500 build is often what people mean by a "gaming computer" and should handle most titles without trouble.
Custom-built PCs generally offer more performance for your money than pre-built ones, and some companies charge premium prices simply because of their brand name. Laptops tend to be pricier and less ideal for gaming, so if gaming is your priority, a desktop is the way to go.