OBS Studio Might also have nVidia or ATI supplied recorder, even more efficient. But requires a lot of credentials to install last I checked so I don't have it.
I use nvidia shadow play, as it has very little system overhead, and has almost no impact on frame rate., but OBS is good too. AMD also has ReLive.