This is done by the music, when the tree starts to become unstable the music changes immediately. How fast the tree falls and you having the time to correct or not depends on the current weight distribution of the tree. A very tall tree will fall so quickly it’s almost instant, while a wide low tree will give you more time to react