How to effectively record 3D games / programs in real time?

Depending on the subject would like to effectively record 3D games / 3D applications running in full screen.

I have a Nvidia 2080 Ti and I have heard of NVENC and obs-studio.

Does anyone have a suggestion?
Can I just use it outside Ubuntu PPAs?

Thank you!