To prevent your laptop from heating while gaming you can take a few measures which includes cleaning the fans regularly, using a cooling pad, and keeping the laptop on a flat surface for better heat dissipation, among others.