In the development of geothermal resources in hot dry rocks, deep underground rock masses are typically subjected to real-time high-temperature environments. High temperatures alter the physical and mechanical properties of the rocks, directly affecting the safe and efficient utilization of hot dry rock resources. Therefore, a grain-based model (GBM) of particle flow code (PFC) was constructed based on uniaxial compression tests, and the model was verified according to macroscopic mechanical parameters and damage modes, in order to carry out the simulation study of the uniaxial compression of granite and explore the meso-failure mechanism of granite under real-time high temperature. The relationships between stress–strain curves and crack derivation, the evolution of microcracks, and the characteristics of acoustic emission activity and energy changes at different temperatures were investigated in conjunction with the results of laboratory tests. The results show that crack development, acoustic emission activity, and energy evolution during uniaxial compression include four main stages: initial compression, elasticity, plastic strengthening, and post-peak damage. The failure of granite is primarily controlled by mica and feldspar. During loading, intergranular tensile cracks first emerge within the granite, followed by intragranular tensile cracks, with shear cracks appearing last. As the temperature increases, the total number of microcracks continuously rises, the frequency of acoustic emission events increases, and both dissipated energy and boundary energy gradually decrease, showing an upward trend in the energy dissipation ratio, indicating an increase in thermal damage due to high temperatures. At 400 °C, the rate of microcrack formation increases significantly, with intergranular and intragranular cracks starting to coalesce into macroscopic cracks that extend outward. In the post-peak stage, the phenomenon of multiple peaks in acoustic emission events begins to appear. At 600 °C, the rate of microcrack formation reaches its maximum, with cracks extending throughout the sample to form a network of fractures, resulting in the granite exhibiting ductile failure characteristics.