If a desktop. The first thing I would do is take part of the case off (like a side) and see if that makes a difference.
If it does (If it fixes the problem or makes it better) that means you have a heat problem if it doesn't you don't.
If you have ruled out heat then it is most likely your...