CRUZADO_101 Getting your graphics card recognized won't make your game run any better. But if you want to do it anyway, it's easy enough. Open [install location]\Game\Bin, here by default for an EA App or Steam install:
C:\Program Files\EA Games\The Sims 4\Game\Bin
C:\Program Files (x86)\Steam\steamapps\common\The Sims 4\Game\Bin
Right-click GraphicsCards.sgr and select Copy. Open Documents > Electronic Arts > The Sims 4 > ConfigOverride, right-click the empty space, and select Paste. This is the copy of the file you'll be working with, as it won't get reverted after a patch. And if you mess up the edit, you can delete this copy and go get a new one from the Bin folder.
Open the file (Notepad is fine) and use ctrl-F to search for Nvidia , which will take you here:
vendor "NVIDIA" 0x10B4 0x12D2 0x10DE
Under that line, create a new line and copy and paste this:
card 0x28e1 "NVIDIA RTX 4050" $cardLevelUber $resolutionHigh
The line should have four spaces at the beginning so that it lines up with the ones below it.
Save the change, close the file, open Sims 4, quit, and check Config.log again.