Home > News

Valve Linux dev releases patch aiming to reduce stuttering that could be a major boost for Steam Deck & Machine

Early optimization patches are in the works to improve stuttering on Linux
Jack GoodallStaff Writer
Last Updated on
Valve Linux dev releases patch aiming to reduce stuttering that could be a major boost for Steam Deck & Machine
PC Guide is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Read More

Table of Contents

New AMDGPU kernel driver patches have been sent out today, engineered by Valve-contracted Linux graphics driver dev Natalie Vock. The 21-year-old gained attention in the community earlier this year (back in April) when they pushed a Linux patch that fixed VRAM management issues on low-end GPUs, making 8GB graphics cards more viable. Vock primarily works on RADV (a Vulkan driver for AMD GPUs).

Vock says that the new kernel patch aims to offer “significant reductions in stuttering” for several recent Windows-based games running on Linux through Valve’s Proton compatibility layer, part of the ‘Steam Play’ feature. This allows users to smoothly play Windows games on Linux systems, most commonly the Linux-based SteamOS that ships on the Steam Deck or Steam Machine.

The new patches can be found on the kernel mailing list, and the new AMDGPU_GEM_VA2 ioctl is the key to reducing stutters. It’s worth noting that Vock has not provided any specific examples or statistics so far. The patches have been put forward to be integrated into the main Linux version, though this may require some time to review before being implemented as it makes its way into SteamOS and other Linux distributions.

“The motivator is that many games have come to heavily use sparse bindings, and they often rely on being able to overlap frame work on gfx/compute queues with sparse binding work on sdma. If PRT mappings are synced to every other submissions like they are right now, heavy sparse binding load can stall the gfx/compute submissions for quite a long while, leading to very noticeable stutters and hitches.

Another problem is that each sparse binding update requires a separate ioctl, so the CPU will also spend significant time constantly switching between user and kernel mode to execute the binding changes one at a time.

To remedy this, this patchset introduces a “VM update context” structure. This context encapsulates some state that is carried around different VM update functions, in patch 1 this is the mappings that were freed along the way. amdgpu_vm_clear_freed then only clears the mappings that were actually freed in the update operation, which is a requirement for being able to explicitly sync that unmap.

In later patches, the update context is expanded to hold a set of pending mapping changes, so that a future ioctl that changes many mappings at a time has a place to keep pending changes while every change is validated, before applying everything atomically if things look okay.”

Natalie Vock, independent contractor for Valve on RADV

21
Interested in next-gen consoles?

As a PC gamer, are you interested in upcoming consoles? Especially considering PC hardware prices?

Written by

At PC Guide, Jack is most responsible for reporting on and editing news. He also specializes in monitors, TVs, and headsets and can be found putting his findings together in a review or best-of guide.

More from Jack →