Random freeze while playing

Jan 22, 2018
14
0
510
My old laptop and my new pc have the same problem of having a random freeze when playing steam games. It differs from 1-3 secs, not to often but sometimes around once a day. What could be the problem
My laptop spec:
I5-3317U, gtx 635m 2gb, 8gb of ram
My new pc:
Ryzen 5 1500x, gtx 1060 6gb, 8gb of ram