Skip to content

Instantly share code, notes, and snippets.

@MoreOrLessSoftware
MoreOrLessSoftware / Set-RTSS-Profile-Limit.ps1
Last active July 30, 2025 06:17
PowerShell script for changing the FPS limit in a RivaTuner Statistics Server profile (handles closing and restarting RTSS)
param(
[string[]]$profileNames, # One or more (separated by commas) RTSS profile names to modify (e.g. Global or MyApp.exe or Global,MyApp.exe)
[int]$limit, # The FPS limit to set (use 0 for no limit)
[int]$limitDenominator = 1 # Optional limit denominator if you want to set a fractional FPS limit (e.g. for 59.56, use limit = 5956 and limitDenominator = 100)
)
# Example usage:
# Set the global FPS limit to 60 FPS:
# .\Set-RTSS-Profile-Limit.ps1 Global 60
# Disable the global FPS limit (reset it to 0):