To troubleshoot the lags in gaming, you can try checking system resource usage, updating graphics drivers, verifying game files, closing background processes, monitoring temperatures, adjusting power management settings, and checking network issues.
Hope this helps.
PC Hardware Specialist