Every mod

Native mod by juliand665, LostLuma, arismoko

Dynamic FPS

Reduces frame rate and audio volume while the game window is unfocused, minimized, idle, or on battery.

MITUpdated 2026-11-26

From a terminal or an agent

sunrise-launcher mods install --source sunrise MB4FPruT

In the launcher

Open Mods, pick Sunrise beside Modrinth, find Dynamic FPS and press Install. It checks the file's checksum and signature first.

By hand

Download dynamicfps-0.5.5.smod with the button above, check its SHA-256 against the one under File, and unzip it into a folder, then build the game with it: sunrise-launcher native-build FOLDER --trust-native-code. It plays in the Native mods instance.

Native mod: not sandboxed, so it can do anything you can on this computer. A reviewer read its source before it was listed, and the launcher builds it into a game of its own after a warning that names it. Read the source yourself before you build it. How native mods work

Made by juliand665, LostLuma, arismoko. Its authors own it and answer for it. Not made or endorsed by the Sunrise project. Mod policy

Dynamic FPS lowers the game's frame rate and audio volume when you are not actively looking at it, cutting GPU, CPU, and battery use in the background:

  • Per-state frame rate caps: configure separate FPS targets for Unfocused (1 FPS default), Invisible / Minimized (0 / 1 FPS default), Idle (10 FPS default), On Battery (unlimited default), and Hovered (60 FPS default). A lower frame rate limit is never raised, and one frame renders immediately on entering a low-FPS state so HUD changes appear without delay.
  • Hover and occlusion detection: an unfocused window under the pointer uses the Hovered state, and a fully hidden (occluded) window uses Invisible, as the window system reports them.
  • Per-state VSync and graphics options: each state can force VSync on or off and a Graphics Options preset (Reduced: fast clouds; Minimal: no clouds and no view bobbing) for the session only, never written to options.txt.
  • Held toasts: with Show Toasts off, incoming toasts wait in the queue and show once the state allows them.
  • Per-source volume multipliers and smooth transitions: scale Master and all 10 individual sound categories per state (config/dynamicfps.toml), including sounds already playing (music, records), pause every sound when Master reaches 0%, and fade volume smoothly at configurable upward and downward speeds.
  • Toggle keybindings and HUD banner: bind Force Unfocused Mode (Toggle) and Disable Dynamic FPS (Toggle) in Options → Controls, with a centered HUD banner while active.
  • Idle detection: automatically switch to the Idle state after a configurable period without keyboard, mouse, cursor, camera, or screen activity (always, or only while discharging on battery).
  • Ignore initial click: optionally discard accidental mouse clicks during the first 10 ms after refocusing the window (Disabled, In World, or Constant).
  • Battery integration: monitors system batteries on Linux (/sys/class/power_supply, plus a mock battery mode on all platforms), switches to On Battery when discharging, draws a corner HUD battery indicator, and shows charging, discharging, and low-battery toasts.
  • F3 FPS line: appends the active power state and target frame rate to the end of F3's frame rate line while not focused.
  • Config screen & hot-reloaded config: Mods → Dynamic FPS → Config opens Dynamic FPS's own paged screen with toggles, choices and sliders; full per-source volume multipliers live in config/dynamicfps.toml and reload automatically.

Client-side only: works in single player and on any multiplayer server.

Differences from the original:

  • The frame rate hook can only lower the engine's cap and ignores values below 1, so 0 FPS (default for Invisible) renders at 1 FPS instead of skipping frames completely, and Uncap Menu FPS / bypassing vanilla's built-in idle throttle cannot raise the cap (gap: sunrise-org/sunrise#5550).
  • World rendering behind an unfinished resource-reload overlay is not skipped (gap: sunrise-org/sunrise#5555).
  • Per-category sound multipliers beyond Master are edited in config/dynamicfps.toml, not on the config screen.
  • run_garbage_collector does not apply because Sunrise is native Rust with no JVM garbage collector.
  • Hardware battery polling reads Linux /sys/class/power_supply; on other platforms, mock battery mode is available.

A port of Dynamic FPS by juliand665 and LostLuma, under the MIT licence.

VersionMade forPublishedSize
0.5.5Latestdev-2026-11-26-ba1f24e2026-11-26726 KBDownload
SHA-256 39abd1f0eeabab8acaa40d1c4bed6e46f66cb3ce9c8604f1e0177652d560ee9a
0.5.3dev-2026-11-25-6a020762026-11-2549 KBDownload
SHA-256 2d28c20064803c07f58cce0e306071707b8b6e1ff125f36a5cbe6955ea314e03
0.5.2dev-2026-11-25-bdad86d2026-11-2549 KBDownload
SHA-256 c93137c0118b61bb5fc6640a259df0ee69decf53cdf7c0542b5aa4c4d7b714ac
0.5.1dev-2026-11-24-3d34bbe2026-11-2442 KBDownload
SHA-256 07e3134206bdfbf06594eaac71ed0e5009b0bab7322507e4e0a70bdee7b095fe