what makes my pc freeze when playing games

Hi and welcome to Daniweb,
The list is quite long as to the causes of freezing, here are some:-
1. Low memory.
2. Too many programs running.
3 Computer is not up to gaming.
4. Hard drive too full
5. Etc....
Please supply a lot more information about your machine, OS and the games you are trying tom play. Someone will try and assist you then.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.