I've had to come to terms with the fact that objectively speaking, we simply do not have the answer to this question. It's one of those "Imponderable Questions" of Buddhism. What does it all mean? "In the grand scheme of things, the grand scheme of things doesn't matter." In the grand scheme of things, the universe will either undergo heat death or expand infinitely beyond the capacity to sustain life and crunch in on itself. In the grand scheme of things, everything you've ever conceived of, heard about, known and loved? Will cease to exist.
And we don't have the power, as human beings, to know what "that all means." So we have to choose, and decide, what is meaningful and important to us. Whether there's a spiritual component to it? I choose to believe that there is. I am Jewish, so I believe in God. I think God is an NHI subject to the ultimate "laws of the universe" as anything else. We just don't know what those laws actually fully are, and cannot understand things like superposition, quantum entanglement, electron reversion, etc.
At the end of the day, I don't have the capacity to know what the grand sum total of my life is. I don't know how many other people's lives I've impacted, for good or ill. I don't know how many people I've saved, and how many people I've killed. In 100,000 years, all of those people will be dead regardless - and so will I. Everything I've ever done will be long lost in the annals of history, whether I'm a tyrant or a saint or a nothing.
So I choose to do as much good as I can, because I can. Because I've decided that entropy is chaotic, and chaos is an impingement on the ability for us to live our lives as they currently are. Am I a good person? Am I a bad person? I don't think I'm either. I think I've taken good and bad actions. And some day it may come that I will be judged for those actions, hopefully by a being that is compassionate and wise. And I'll accept that, if I still have free will at that time. (If not, it won't much matter).
Personally, I choose not to believe that any human life lived in the pursuit of wellbeing is wasted. There are humans who waste their lives, by being harmful and causing suffering without any balance. But doing nothing? Isn't the same thing as a harmful action. I do nothing all day every day, and I've come to really enjoy it. My life isn't a waste, because I spend all day playing videogames and chatting to people online. That's a great life! For me, anyway.