That's a common symptom of overheating, usually caused by dust or a tired fan (or both). Easy to cure. If it's a laptop, blow in the vents that circulate cooling air.
Thank you!