punktfunk-plugin-rtss
Caps the game at the refresh the client actually negotiated, through RivaTuner Statistics Server, for the length of a stream — and puts your own limit back when it ends. 60 Hz on the phone, 120 on the TV, from one install and no per-title setup.
RTSS is by Unwinder / Guru3D and is not bundled here. Install it yourself; this plugin only edits its Global profile.
What it does
- On
stream.startedit reads the mode the host negotiated (3840x2160@120), journals what RTSS's Global profile says now, and writesLimit/LimitDenominatorunder[Framerate]. - On
stream.stoppedit writes your previous limit back. With two streams up, the last one out restores; the survivor keeps its cap. - It never leaves a cap behind. The journal is written before the cap, the previous limit is restored on startup if a prior run died mid-stream, and again on clean shutdown.
- It tells you what's missing. At startup the plugin log names each setup step that isn't
done, with the command that does it;
doctorprints the same list on demand.
Windows only. On any other host it starts, says so once, and idles.
Set up
-
Install RTSS and turn on Start with Windows in its main window. RTSS enforces the cap from inside the game, so it has to be running when the game starts.
-
Install the plugin. In the console: Plugins → Browse → RTSS Frame Cap → Install. Or from an elevated PowerShell:
punktfunk-host plugins add rtss punktfunk-host plugins enable # only if the runner is off -
Let the plugin write RTSS's profiles. Once, from an elevated PowerShell:
icacls "C:\Program Files (x86)\RivaTuner Statistics Server\Profiles" /grant "*S-1-5-19:(OI)(CI)M" "*S-1-15-2-1251237843-3372458582-2949526732-893382375-1396029850-1946794802-2851191480:(OI)(CI)M"*S-1-5-19isNT AUTHORITY\LocalService, the account every plugin runs as, and the second SID is this plugin's own sandbox; a write needs both. The SID forms work on any Windows language. The console can't do this step: it never gives a plugin write access inside Program Files. -
Start the stream, then the game. A game that was already running keeps the limit it started with.
Check it works
Run doctor from an elevated PowerShell. Nothing puts the plugin's commands on PATH, so call
them through the bun that ships with Punktfunk:
& "$env:ProgramFiles\punktfunk\bun\bun.exe" "$env:ProgramData\punktfunk\plugins\node_modules\@punktfunk\plugin-rtss\dist\cli.js" doctor
ok Windows host
ok RTSS in C:\Program Files (x86)\RivaTuner Statistics Server
ok Global profile or its template present
FAIL Profiles folder writable by the plugin runner
→ from an elevated PowerShell: icacls "C:\Program Files (x86)\RivaTuner Statistics Server\Profiles" /grant "*S-1-5-19:(OI)(CI)M" "*S-1-15-2-1251237843-3372458582-2949526732-893382375-1396029850-1946794802-2851191480:(OI)(CI)M"
ok RTSS running
?? means the check itself couldn't run. Then start a stream and read the plugin's log: the
console's Troubleshooting page, source plugin:rtss, or
Select-String -Path "$env:ProgramData\punktfunk\plugin-state\runner.log" -Pattern "rtss" | Select-Object -Last 20
Each stream start logs rtss: 120 fps for native:<device>, and each stop puts your own limit back.
Troubleshooting
| You see | Do this |
|---|---|
punktfunk-plugin-rtss isn't recognized |
Use the full bun.exe … cli.js command above. |
FAIL Profiles folder writable by the plugin runner, or can't write …\Global in the log |
Run the icacls command from step 3. The next stream picks it up; no restart. |
RTSS isn't running, so the cap does nothing |
Start RTSS and turn on Start with Windows. |
The log shows 120 fps for …, the game runs uncapped |
Restart the game: it started before the stream. A per-game profile in RTSS overrides Global; remove its limit. |
No rtss: lines at all |
The runner is off. Check with punktfunk-host plugins status. |
Configure
%ProgramData%\punktfunk\plugin-state\rtss\config.json — every key optional:
{
"enabled": true,
"offset": 0,
"installDir": "C:\\Program Files (x86)\\RivaTuner Statistics Server"
}
offset is added to the negotiated refresh: -1 caps a 60 Hz stream at 59, -0.01 at 59.99.
A saved change applies to the next stream; no restart.
CLI
Run each through the full command in Check it works, with the verb at the end.
| Command | What it does |
|---|---|
doctor |
Every setup step, the current limit, and any restore still pending. |
cap <hz> |
Cap now, as a stream at that refresh would. |
restore |
Put the journaled limit back now. |
Limits
- RTSS's hook reads the profile when a game starts. A title already running before the stream keeps the cap it started with; the host launches the title after this event fires, so a session-launched game gets the new cap.
- The Global profile is one value for every title. A per-game
.cfgin RTSS still overrides it. - No OSD and no frame-time readout: RTSS's shared memory is session-local, and the runner lives in session 0. Those need a helper in the user's session, which this plugin does not ship.
Use of AI
This project uses AI for writing code.