dritao wrote:
Yeah sorry I should’ve mentioned it before! I bought the Mac new from Best Buy, so the charger and everything is from the box.
It’s the 16 inch M3Max with 16-Core CPU, 40-Core GPU, 48GB Unified Memory and 1TB SSD Storage
Thank you. That is a top of the line Mac, it should easily be able to handle what you are using it for.
When the battery stops charging, does it look like this:

Showing the plug like that, instead of the little lightning bolt that signifies charging is underway, means the Mac is keeping the charge level below 100% intentionally to preserve battery life.
This setting in controllable in the System Settings, Battery, Battery Health. If Optimized Battery Charging is active (turned on), this is how it will behave.
If the lightning bolt is showing but the charging is slow when demanding (like your 3D perspective applications) graphics or calculating activity is underway, that is normal.
And if the Optimized Battery Charging is active the charge level may hold even or decrease at times. It should not get much below 80% when the charger is connected.
If you wish, you can turn off Optimized Battery Charging and then should see the charge rapidly progress to 100% when idle. Also if you click on the battery icon at the top of your screen, it should present an option to "charge to full now" which will then proceed to do that if you select it.
See more on this: About Optimized Battery Charging - Apple Support
If you think your Mac charging is not proceeding properly, even after reading the above, then I expect it is still under warranty and by all means have it examined at the Apple Store. You have a very expensive and high end computer and you deserve for it to be operating correctly