I currently work in after effects to make animated graphs and similar things. I use effects alot in my projects. At first my rig was okay because I used to work on small projects but now the projects are much larger and take 10+ to export a 2m video. I done a research and I found that some people say to upgrade the RAM and some say to have a good GPU if you use effects, etc. I can't decide which to upgrade. My budget can get me a 32GB kit of RAM or a RX 580 8gb/ similar.
My current rig does not have a dedicated GPU because I use a Ryzen 2400g. GPU prices were very high when I built the PC due to Bitcoin mining.