Have you tried running the extended version of the Apple Hardware test? It's on one of the gray discs that originally came with your computer. You want to run it when the problem happens, maybe when gaming with 48 windows open. See if you can catch anything in the form of an error code. Heat from intense processor use could be a factor.
Some hardware problems can be intermittent. To catch them, you have to be able to reproduce the conditions that caused them, which in this case may be heavy processor use.
I have even read about someone who took his Mac in and it passed the graphics chip test, but because he reproduced the graphics distortions in front of them, they ultimately decided that the graphics chip did indeed have a problem and replaced his logic board under the NVIDIA program.
If the graphics distortion seem to be associated with intense processor activity, I would be suspicious of the graphics chip. Have you tried an external display? If you still get the distortion, that would also point to a graphics chip problem. If you do not, it could be a display problem instead.
Good luck!