You didn't get here by yourself. You know some of the people who have generously contributed to you. There are more than you know. The ones who stick out are relatively wealthy. Do you think they are generous because they are wealthy? I submit to you that normal wealth does not make it easier to be generous. A person rich enough to buy a boat has just created more demands on their wealth. A big house usually involves more ongoing financial obligations than a small house.
For most people, generosity is not a function of net worth. It is a matter of character. You can make it part of your character beginning today. You are about to leave my house and face the world on your own. There will be challenges. Money will be tight. "Starving college students" isn't always an amusing tagline. I encourage you to make a point of doing something generous. Maybe commit to giving $1 to a random person on the street every week. Maybe donate plasma. Maybe volunteer to be a Salvation Army bell ringer. But make a point to do something frequent. At least once a month. Even when tuition is due, or rent. Even if just an hour of your time. It's up to you. But do it regularly and relentlessly. If you ever get to where it is easy, it is probably because your circumstances have improved but your generosity has not kept pace.
Making a commitment up front to donate 10% just creates a situation in which its not any sort of conscious decision to give $X to charity. You just operate as if your taxes were 10% higher or your income is 10% lower and go from there.
WRT income, I am thankfully able to afford my lifestyle, but I currently earn 5 digits a year and always have (I am still young). I don't regret a penny I gave.
If you're very frugal, you'd end up giving away a very small amount of money, saving all the rest... Saving is super important, but giving money to effective charities is also a great way to use your money.
To take a typical example of someone that might be reading HN, any software engineer working in NY or the Bay Area can easily give away $10K a year while saving enough money to get a very cozy retirement.
Let's assume you're a junior SWE in the Bay Area, making $130K. Annual take home is ~$85,753 according to [1] You pay $3K in rent (nice 1 bedroom apt in South Bay, or just a decent one in SF), $2K for various expenses, that's $60K and you're left with $25K.
This is for a junior engineer, and granted they might want to save $25K vs $15K (arguable; I would consider those savings don't matter much in the long run, the goal being to quickly increase your salary by advancing your career), but an engineer in a large tech company is making closer to $250 - $300K total comp, and you'll see that the $10K donation isn't making much of a dent in your savings at that point.
[1] https://smartasset.com/taxes/california-paycheck-calculator#...
Those charities aren't going to help you when you're retired and subsiding on a meagre state pension. Or if there's a resurgent global pandemic and you lose your job and home.
Save first, always.
Absolutely for saving to be able to survive ~1 year as life is very unpredictable, but we're talking about altruism here... Let's for a second assume we all want to have the largest positive impact on other people, is that $1M really the best way to spend your money to both improve your and other people's life? Could you instead buy a house/work elsewhere, pay $400K, and invest $600K in saving a hole bunch of people from certain death / extreme poverty?