Cristobal, I had a total hip replacement (left) 10 years ago (May, 2003). The pain in my hip had gotten so bad that not only couldn't I hike, I couldn't even find a comfortable position for sleep.
Since the replacement I have summited Whitney twice (and stopped short of the summit twice, but not because of hip pain), hiked to the top of a couple Colorado 14ers, been up Baldy many dozens of times (some of us don't keep count), and hiked mountains in Spain, France, and Italy.
There are many factors to consider in deciding whether to have a replacement operation but I am very glad I did it.
Whatever you do, good luck.
Burt