Howdy,
I feel like it depends on how generally satisfied you are with the build and how much you want to spend. Platform bottlenecks scale down as resolution scales up.
3800x is still pretty decent, there’s four-ish main options it feels like:
1) only replace gpu
Most cost effective, 2d apps would have about the same experience, least ‘shiny new thing’ factor
2) gpu + ram
if you feel 2d apps or struggling or you have a lot of swap space activity then adding memory would smooth that out. You typically ‘lose less’ rather than ‘gain extra’ performance.
3) gpu + 5700x3d + maybe ram
Half way between full upgrade, 3d cache gains can be significant but it also depends on the title, retains existing motherboard. Ram may or may not make a difference, if you’re constantly at like 80-85%+ utilization I’d consider it.
4) gpu + motherboard + cpu + ram
Full platform upgrade, new board, can slot in things like 9800x3d for a large cpu performance uptick. Not spending into a dead platform or previous ram generation but significantly more expensive.
Personally I’d see how option 1 pans out unless the ‘new shiny’ factor is too enticing. Platforms like am5 have another couple years of support, you might be able to squeeze out until am6 with what you have and skip an upgrade cycle for effectively less money over time but then you’re also basically using the same computer with a better gpu for a couple years. Any approach is fair game really.