Build scripts that turn libstrangle, a frame rate limiter for OpenGL and Vulkan games (including Proton/DXVK/VKD3D), into a proper .deb package for Debian, Ubuntu, Kubuntu, Linux Mint, Pop!_OS and other derivatives.
libstrangle is not packaged in the Debian or Ubuntu repositories, and the upstream source no longer builds with GCC 15. This kit fixes that.
- Fixes the GCC 15 build error in
src/vulkan/overlay.cpp('stderr' was not declared in this scope) by adding the missing#include <cstdio>. - Builds 32-bit and 64-bit libraries, for both OpenGL and Vulkan.
- Installs to
/usrinstead of/usr/local, as Debian packages should. - Produces a
.deb, so you can install, update and remove libstrangle withapt, and the dynamic linker cache is refreshed automatically.
The build runs as a normal user and never touches your system. Only apt install at the end needs sudo.
# 1. Build dependencies
sudo apt install git build-essential gcc-multilib g++-multilib \
libx11-dev libgl-dev libvulkan-dev dpkg-dev
# 2. Upstream source
git clone https://gitlab.com/torkel104/libstrangle.git
cd libstrangle
# 3. Build the package (put build-deb.sh in this directory first)
./build-deb.sh
# 4. Install
sudo apt install ./dist/libstrangle_*.debA .deb is attached to the releases of this repository. It was built on Ubuntu 26.04 / Kubuntu 26.04.
A package built on a newer distribution can fail to load on an older one (glibc version). If the prebuilt package does not work on your system, build it from source with the steps above. That takes about a minute.
Steam launch options (right-click the game → Properties → Launch Options):
strangle 30 %command%
For Vulkan only (also covers Proton games through DXVK/VKD3D):
stranglevk 30 %command%
From a terminal:
strangle 60 /path/to/gameSee the upstream README (installed to /usr/share/doc/libstrangle/README.md) for more options such as VSync control.
A manual install puts files under /usr/local, which takes priority over the package. Remove it first:
./remove-manual-install.shThe script lists the files, asks for confirmation and runs ldconfig.
sudo apt remove libstrangle| Variable | Default | Purpose |
|---|---|---|
VERSION |
taken from the git commit | package version |
MAINTAINER |
taken from git config |
maintainer field |
Example: VERSION=1.0 ./build-deb.sh
libstrangle is developed upstream at https://gitlab.com/torkel104/libstrangle; all credit for the limiter itself goes to its authors. It is licensed under the GNU GPL v3; these packaging scripts are released under the same license.