To run Call of Duty smoothly on a PC, you need suitable hardware, mainly a capable graphics card and enough RAM.
If your system doesn't meet the game's requirements, the fix is to upgrade your hardware, since this can't be resolved through software alone. Once your specs line up, the game should run without issue.