Skip to content

Instantly share code, notes, and snippets.

@MoreOrLessSoftware
MoreOrLessSoftware / Set-Cyberpunk-2077-Resolution.ps1
Last active October 16, 2025 14:45
Change the Cyberpunk 2077 settings file to make the resolution and max FPS to match that of the primary display
# NOTE: This script requires the DisplayConfig PowerShell module.
# Install it with: Install-Module DisplayConfig
# 1. Get the current display resolution
$displayInfo = Get-DisplayInfo | Where-Object { $_.Primary }
$screenWidth = $displayInfo.Mode.Width
$screenHeight = $displayInfo.Mode.Height
$targetResolution = "${screenWidth}x${screenHeight}"
$targetMaxFps = [System.Math]::Ceiling($displayInfo.Mode.RefreshRate)
@MoreOrLessSoftware
MoreOrLessSoftware / Set-RTSS-Profile-Limit.ps1
Last active November 19, 2025 22:43
PowerShell script for changing the FPS limit in a RivaTuner Statistics Server profile
param(
# One or more (separated by commas) RTSS profile names to modify (e.g. Global or MyApp.exe or Global,MyApp.exe)
[string[]]$profiles = ("Global"),
# The FPS limit to set (use 0 for no limit, "auto" for current primary display refresh rate)
$limit = "auto",
# Optional limit denominator if you want to set a fractional FPS limit (e.g. for 59.56, use limit = 5956 and limitDenominator = 100)
[int]$limitDenominator = 1,
@MoreOrLessSoftware
MoreOrLessSoftware / Yuzu-Configure-Controller.ps1
Last active January 3, 2025 23:22
Helper script for changing the controller ID (for player 1) in the Yuzu configuration file
# Usage with Sunshine (for example):
# Do command:
# powershell -File "F:\Scripts\Yuzu-Configure-Controller.ps1" Xbox360
# Undo command:
# powershell -File "F:\Scripts\Yuzu-Configure-Controller.ps1" XboxOne
#
# You MUST first configure the iniFilePaths and controllerIds below for your specific system!
# Highly recommend to backup your Yuzu configuration files first!
param(