Skip to content

[Linux / Vulkan] AMD Anti-Lag 2 (r_low_latency 1) caps native Dota 2 to ~20 FPS on Mesa 26.3 RADV (VK_AMD_anti_lag) and auto-re-enables under basic presets #3598

Backlog

Description

@ExeDevCentral

Description

On Mesa 26.3.1 (RADV), which newly exposes native VK_AMD_anti_lag, running the native Linux Dota 2 Vulkan client with AMD Anti-Lag 2 enabled (r_low_latency 1) locks the game into a permanent ~20–24 FPS cap (~41–50 ms frametime) with the GPU mostly idle (~35–39% busy even at max 2799 MHz DPM clock).

Additionally, if Video settings use Basic presets ("setting.useadvanced" "0" in video.txt), Dota 2 automatically re-enables "setting.r_low_latency" "1" on launch whenever VK_AMD_anti_lag is advertised by the Vulkan driver, re-triggering the 20 FPS lock even after manually disabling it in the console.

Upstream Driver Tracking

This interacts with Mesa RADV's vk_frame_pacer submission-span calculation tracked upstream in Mesa #16959 (https://gitlab.freedesktop.org/mesa/mesa/-/issues/16959): because Source 2 submits multiple command buffers across a frame (Panorama UI + 3D world passes), RADV's first-to-last submission span includes the Anti-Lag sleep itself, creating a self-sustaining ~40–50 ms sleep inside CAMDAntiLagVulkan -> vkAntiLagUpdateAMD -> os_time_nanosleep_until (clock_nanosleep).

System Information

  • OS: EndeavourOS (Arch Linux), Kernel 7.3.6-arch1-1, KDE Plasma 6.8.3 Wayland (sRGB Direct Scanout, AllowTearing=true)
  • CPU / RAM: AMD Ryzen 5 8500G (amd-pstate-epp performance), 32 GiB DDR5-6000 Dual-Channel
  • GPU / Driver: AMD Radeon 740M (RADV PHOENIX2, 0x1002:0x15c8, RDNA3 / GFX1103, 4 GiB UMA), Mesa 26.3.1-arch1.3 (Vulkan 1.4.363)
  • Runtime: Steam Linux Runtime 3.0 (sniper) (Native Linux client)
  • Regression Window: mesa 1:26.2.7-1 (120+ FPS) -> mesa 1:26.3.1-2 (20–24 FPS)

Steps to Reproduce

  1. Launch native Linux Dota 2 on Mesa 26.3.1 (RADV) with r_low_latency 1 (AMD Anti-Lag 2 enabled).
  2. Enter Hero Demo or spectate a live match -> FPS is immediately clamped to 20–24 FPS; Thread 1 spends ~100% of frame time in:
    #0  libc.so.6 + 0xa08f2
    #1  libvulkan_radeon.so + 0x373c37  (os_time_nanosleep_until + 0x67 -> call clock_nanosleep)
    #2  librendersystemvulkan.so + 0x4d4d7e  (CAMDAntiLagVulkan -> vkAntiLagUpdateAMD)
    
  3. Run r_low_latency 0 in console -> FPS immediately jumps back to 120–150 FPS (~6.6–8.3 ms frametime).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions