The simple answer would be the temperature it starts at in the clouds, the temperature it is on the surface, and how fast the precipitation falls. Usually in the clouds, it forms as ice crystals. Then as it falls down to the surface, the speed depends on how fast it melts into rain or hail or snow flakes