So i have asked his question before but got no response after a while of trying a few things. one of the main things everyone thought was that the psu might be bad and restarting my pc when i would play a game or just be browsing the internet. I got a new psu and it did the same thing after a while. i was told maybe it might be my motherboard power settings by a friend and that when the board gets a power fluctuation it resets itself because that's what it thinks it has to do. My motherboard is a Gigabyte GA-H77-DS3H. if anyone else has any suggestions let me know.