GPU(1)marcp.xyzGPU(1)

NAME

gpu - Driver settings for lowest latency

DESCRIPTION

NVIDIA driver tuning

NOTES

Note: Do NOT enable ForceFullCompositionPipeline for competitive gaming - it adds latency. It's designed to eliminate tearing, not reduce lag. Same for TripleBuffer - NVIDIA docs state it "increases latency slightly" and is only relevant with VSync on.

EXAMPLES

Set these in your shell profile or ~/.xinitrc:

# Disable VSync (accept tearing for lowest latency)
export __GL_SYNC_TO_VBLANK=0

# Prevent driver from calling sched_yield() (avoids scheduling delays)
export __GL_YIELD="NOTHING"

Force Maximum GPU Clocks

# Persistent (survives reboot)
$ echo 'options nvidia NVreg_RegistryDwords="PerfLevelSrc=0x2222;OverrideMaxPerf=0x1"' \
  | sudo tee /etc/modprobe.d/nvidia-perf.conf

# Runtime
$ nvidia-smi -pm 1
$ nvidia-smi --lock-gpu-clocks=0,

# Check your max clocks
$ nvidia-smi -q -d SUPPORTED_CLOCKS | head -40

SEE ALSO

kernel(1), tweaks(1), display(1)

marcp.xyz2023-10-31GPU(1)