Computer shuts off randomly when launching game

defiantly psu related, happened to me, i got around it temporarily lowering my cpu speed and removing all usb devices i was not using, the psu was maxing out and delivering voltage brown outs, got a better psu and all was solved