The scene was shot with an actual leopard and was not computer graphics generated.
The scene was shot in Thailand and each time he climbed up the tree assuming that he was fast, the trained leopard would run up effortlessly like lighting, proving to be much faster than him.
In one take while he was jumping off the tree as the leopard reached him, he dislocated his shoulder too. Occupational hazards!