Skip to content
Roroca-1Public

About

A FPS limiter for Linux Desktops

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Pacer

A native, ultra-lightweight, low-latency frame rate limiter for Linux games, with per-game presets, live in-game limit switching, and a choice between razor-flat frame pacing and minimum input latency. Think RTSS's limiter, rebuilt natively in C11 and Qt6 for Linux.

CI License: MIT Buy Me a Coffee

Pacer main window

Features

  • Tiny native footprint (~700 KB total):

    • Pure C11 Vulkan & OpenGL hook layers (~38–50 KB each, ~174 KB across 64-bit & 32-bit; libc-only — zero libstdc++, libm, libgcc_s, or libatomic).
    • Pure C11 pacer-ctl CLI (~19 KB, libc-only, sub-millisecond execution).
    • Native C++17 Qt6 Widgets GUI (~492 KB; no Python or PySide6 runtime, event-driven with 0 wakeups/sec when minimized or in the system tray).
  • Works with almost everything: native Vulkan, Proton/Wine with DXVK (D3D9–11), and VKD3D-Proton (D3D12) are hooked automatically through an implicit Vulkan layer. Native OpenGL games are hooked via pacer-run.

  • Per-game presets: pick a running game, set a limit, done. Presets apply automatically every time that game launches — even when the GUI is closed — and reload instantaneously while playing.

  • Three pacing methods:

    Method Where it waits Best for
    Smooth (frame pacing) right before present on a fixed absolute time grid with bounded phase-debt slewing flat frametimes; single-player, controllers, VRR / V-Sync
    Low latency (competitive) right after present, so the game samples input as late as possible shooters and other competitive games
    Balanced (predictive) learns the game's frame CPU time (robust p94 quantile estimator), sleeps spinlessly after present, and wakes just in time for the grid near-Smooth flat frametimes with near-Low-Latency input lag and minimal CPU use
  • Smoother frametimes & lower judder:

    • 2-stage overshoot-tracking waiter: wakes cleanly out of deep CPU C-states before a short precision sleep (tracking recent scheduler overshoots) and a tiered pause spin-wait with 1 ns timer slack.
    • Bounded phase-debt slewing: recovers smoothly after hitches and shader stutters without causing long–short frame zigzags or fast-forward bursts.
    • Lower presentation overhead: lock-free Vulkan swapchain hot path, zero-allocation cached Vulkan OSD rendered before the wait, and early glFlush() on OpenGL so the GPU renders while the limiter sleeps.
    • 0-wakeup in-game helper thread: blocks in poll() on inotify (config changes) and a single libxcb + XInput2 socket (hotkeys and focus tracking) — zero periodic polling wakeups inside your game.
  • Change the limit in-game with customizable hotkeys (cycling refresh-rate divisors, a custom list, or a fixed step) and a crisp Vulkan on-screen indicator.

  • Refresh-aware quick presets: automatically lists all clean integer divisors ≥ 30 Hz of your display's refresh rate (e.g. 540 Hz → 30, 36, 45, 54, 60, 90, 108, 135, 180, 270, 540, 1080 + VRR), locked to the display's exact refresh rate (e.g. 540.189 Hz) so pacing never drifts.

  • Live frametime graph & long-run telemetry: frametime σ, average |Δ target|, frame-start σ (how evenly the game samples input), 1% lows, and configurable graph refresh rate (including Off for minimal GUI CPU).

  • Background limit & Vulkan present-mode override: drop FPS automatically while alt-tabbed, and optionally override Vulkan present mode (FIFO, Mailbox, Immediate, FIFO relaxed) per game.

  • Clean desktop ergonomics: 1–20000 FPS, 32- and 64-bit games, draggable resizable sidebar (width remembered), Steam/Faugus/Lutris/Heroic game titles, system tray icon, and start on login.

Install

Arch Linux / CachyOS

A PKGBUILD is included:

cd packaging && makepkg -si

From source (per user, no root)

Dependencies: gcc/g++ (with 32-bit multilib for 32-bit games), make, pkg-config, qt6-base, zlib, libxcb (Vulkan headers optional — a minimal fallback header is bundled).

git clone https://github.com/Roroca-1/Pacer && cd Pacer
make -j"$(nproc)"   # builds 64-bit & 32-bit C11 hook libraries, native Qt6 GUI, and C11 CLI
./install.sh        # installs into ~/.local (also removes legacy Python installs on upgrade)
pacer               # launch the GUI (also available in your app menu)

./uninstall.sh removes everything except your presets. Packagers: PREFIX=/usr DESTDIR=… ./install.sh.

Game type How it is hooked
Native Vulkan, Proton/Wine with DXVK or VKD3D-Proton automatically (VK_LAYER_PACER_limiter); restart games that were already running
Native OpenGL Steam launch option pacer-run %command%

Disable Pacer for a single game with the launch option DISABLE_PACER=1 %command% (useful for titles with strict anti-cheat policies that restrict third-party Vulkan layers or LD_PRELOAD).

Usage

  1. Start a game. It appears under Running in the sidebar (switch the filter between Games, Graphics apps, and All processes; right-click an entry to pin or hide it; click + to add an executable manually; drag the sidebar divider to resize it).
  2. Select the game and click Create preset. Enter a target FPS or click a quick preset, then pick a pacing method.
  3. Changes take effect immediately in the running game and are saved for future launches.

In-game hotkeys

Default Action
Ctrl+Shift+PgUp / PgDn next / previous limit (quick presets, custom list, or fixed step)
Ctrl+Shift+End limiter on/off
Ctrl+Shift+Home cycle pacing method (Smooth / Low latency / Balanced)

Hotkeys can be recorded in Settings → Hotkeys. They are captured inside the game over X11/XWayland (covering Proton/Wine and most native titles). For native-Wayland games, bind desktop shortcuts to pacer-ctl:

pacer-ctl up | down | toggle | on | off | set 72 | mode [smooth|latency|balanced] | status

How it works

The pure-C11 Vulkan implicit layer (libVkLayer_pacer.so) and OpenGL LD_PRELOAD hook (libpacer_gl.so) pace frames around swapchain presentation using a 2-stage clock_nanosleep (exiting deep C-states cleanly before a short precision sleep) paired with a 32-sample overshoot tracker, tiered pause spin-wait, 1 ns timer slack, and bounded phase-debt slewing.

Each game watches ~/.config/pacer/presets/<exe>.conf and ~/.config/pacer/settings.conf via inotify inside a single poll() loop alongside optional XCB/XInput2 hotkey & focus events. The GUI never attaches to or injects into game processes — it only writes config files and reads a small ~2.4 KB memory-mapped telemetry block in ~/.local/state/pacer/run/.

Limits above 1000 FPS work (up to 20000); how closely a game tracks them depends on its own frame-time consistency and scheduler granularity.

Privacy

Pacer has no telemetry. To display clean game titles it downloads one public file — Discord's list of known game executables — on first run and then monthly, streaming it into a compact local cache (~/.cache/pacer). Your process list never leaves your PC. You can turn this off in Settings → Application → Game names, in which case titles come purely from your local Steam, Faugus, Lutris, and Heroic libraries plus executable names.

Files

  • ~/.config/pacer/presets/<exe>.conf — per-executable preset
  • ~/.config/pacer/settings.conf — hotkeys, OSD, defaults, ignore list, background limit, GUI preferences
  • ~/.local/state/pacer/run/ — live memory-mapped status blocks for active games
  • Debug logging: PACER_DEBUG=1

Development

make dev        # libraries + native GUI + CLI + headless Vulkan/OpenGL smoke tests
make test       # pacing accuracy test, pacer-ctl tests, offscreen Qt6 GUI layout & splitter test
VK_IMPLICIT_LAYER_PATH=$PWD/build/dev-manifest build/tests/vk_smoke   # headless Vulkan + OSD (needs a GPU)
bin/pacer-run build/tests/gl_smoke                                    # headless EGL hook check

Support

If Pacer is useful to you, you can support development here:

Buy Me a Coffee

License

MIT © 2026 Kanasara

About

A FPS limiter for Linux Desktops

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages