For systems running GNOME, with Intel CPU and NVIDIA GPU
/etc/environment
__NV_DISABLE_EXPLICIT_SYNC=1
__GL_YIELD=NONE
__GL_SYNC_TO_VBLANK=0
__GL_GSYNC_ALLOWED=0
__GL_VRR_ALLOWED=0
__GL_PWR_AUTOBALANCE=0
__GL_MaxFramesAllowed=1
GBM_BACKEND=nvidia-drm
__GLX_VENDOR_LIBRARY_NAME=nvidia
MUTTER_FORCE_KMS_MODE=1
MUTTER_DEBUG_KMS_THREAD_TYPE=user
MUTTER_DEBUG_ENABLE_TRIPLE_BUFFERING=0
CLUTTER_DEFAULT_FPS=240 # set to whatever your monitor's highest refresh rate is
/etc/modprobe.d/nvidia.conf
options nvidia NVreg_RegistryDwords="OverrideMaxPerf=0x1; PerfLevelSrc=0x2222;"
options nvidia NVreg_InitializeSystemMemoryAllocations=0
options nvidia NVreg_UsePageAttributeTable=1
options nvidia NVreg_EnableGpuFirmware=0
options nvidia NVreg_TCEBypassMode=1
/boot/loader/entries/linux-zen.conf
quiet mitigations=off i8042.nopnp=1 i8042.dumbkbd=1 usbhid.mousepoll=1 nvidia-drm.modeset=1 nvidia_drm.fbdev=1 intel_pstate=disable nowatchdog nosoftlockup audit=0 skew_tick=1 tsc=reliable modprobe.blacklist=nouveau intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll spec_store_bypass_disable=off l1tf=off tsx=on tsx_async_abort=off kpti=0 nopti nvidia.NVreg_PreserveVideoMemoryAllocations=1 initcall_blacklist=simpledrm_platform_driver_init nohz=on nvme_core.default_ps_max_latency_us=0