There are some great answers to your question
here.
But practically speaking, the reason for a slow or laggy game generally isn't RAM unless you've really cluttered up your computer. Your processor speed and graphics card determine the maximum FPS and quality your game can run at.