====== NVIDIA Prime Render Offloading (Linux) ======
NVIDIA Prime renderer offloading is a technique used to offload graphics rendering onto an NVIDIA discrete graphics. That sounds like a bunch of gibberish, but this is how you use an NVIDIA GPU on a laptop for games (or whatever else may need it) and use your Intel integrated GPU for your desktop and other apps that don't need the horse power to save on battery life.
==== General Command ====
To use NVIDIA Prime offloading, prefix your command like so:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia _command_
Where `_command_` is the command to run the application. For instance, to launch Firefox with NVIDIA Prime offloading:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia /usr/bin/firefox
==== Command for Steam ====
For GLX applications (copy as is):
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %command%
For Vulkan applications, you can drop the GLX library bit:
__NV_PRIME_RENDER_OFFLOAD=1 %command%