Don't even bother. Raytrace 3D is a dead feature. whatever money you plan o9n spending on hardware can be much more sensibly spent on 3D plug-ins like Element 3D.
Mylenium is 120% right. Don't bother with raytracing in AE - do what you wanna to do with Element 3D or any other 3D plugin that is compatibile with Ae and the rest of the money spend on f.eg. more ram - there's never enough of that
But if you're really dead set on using the dead end, obsolete ray-traced renderer, the 13.6 update to After Effects updates the Optix library and, if you tick the "use unsupported cards" option in your settings will use the newer NVIDIA cards to accelerate the ray-traced renderer.
Again, AE doesn't use the GPU for much of anything. It'll accelerate the obsolete ray-traced renderer which very few people ever used, but that's about it.
Upgrading your CPU is the only thing that might help. The other thing is learning how to work smarter with After Effects.
You don't need to run a full quality, full resolution preview all the time.
Get your animation timing down with low quality and low settings and no effects. Then start adding your effects and such. Set your motion up with low settings (like lower particle counts, etc.). Spot check full frames only every once in a while. After a while of working with AE, you'll learn what you need to check and what you don't. Many pros never see the final product until after it renders.