the game is not enough optimized yet, many of us have that problem, but aren't the frame , try don't use shadows and don't play in huge map or many units in maps , the lag happens when Ai try to spam many units to attack so This way the CPU try to calculate the pathfinder for an army and over heat your computer.