First of all, see, if same thing happens in safe mode.
If it does, then, most likely, you have video chip problem.
If it doesn't, then, most likely, you have a driver problem.
It may be overheating as well.
What brand and model of the computer is it?