Turn off Game DVR, it draws performance away from every other program and directs only to the game.
You turned up your x264 preset to ultrafast, which made the video suck because Ultrafast sucks. I would recommend going back to Superfast if your CPU can handle it, or at least Quicksync H.264, because at least that doesn't suck at least a lot. My recommendation is to always go back to a Hardware encoder, and to switch to a desktop, but some people may not have that opportunity, so at least just use Quicksync.
Regards,
Spectr3