# NVIDIA-optimized environment variables for Ready or Not
# These are sourced before game launch

# Enable NVIDIA GPU optimizations
__NV_PRIME_RENDER_OFFLOAD="1"
__GLX_VENDOR_LIBRARY_NAME="nvidia"

# Fix for mods menu freeze - allows the agreement dialog to display properly
PROTON_SET_GAME_DRIVE="1"

# Audio crackling fixes for PipeWire (optimized for lower latency)
PULSE_LATENCY_MSEC="60"
PIPEWIRE_LATENCY="128/48000"

# NVIDIA-specific Vulkan optimizations
VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/nvidia_icd.json"

# DXVK NVIDIA optimizations
DXVK_STATE_CACHE_PATH="/tmp/dxvk-cache"
DXVK_ASYNC="1"
DXVK_HDR="1"

# NVIDIA DLSS support
PROTON_ENABLE_NVAPI="1"
PROTON_HIDE_NVIDIA_GPU="0"

# Memory optimizations
PROTON_FORCE_LARGE_ADDRESS_AWARE="1"

# Disable AMD-specific optimizations
RADV_PERFTEST=""

# GameScope optimizations for NVIDIA
GAMESCOPE_LIMITER_FILE="/tmp/gamescope_limiter"