Quote from: Dazraz on November 29, 2024, 12:28:41 PMI seem to be getting stutters in some games and have set my lasso to probalance - performance mode and high priority - is there any other setting i can try to get rid of these stutters ?
Also how do you enable Game mode ?
7800x3d
4080 super
64gb ram
$signature = @'
[DllImport("dwmapi.dll", SetLastError=true)]
public static extern int DwmEnableMMCSS(bool enable);
'@
$dwmapi = Add-Type -MemberDefinition $signature -Name "DwmApi" -Namespace "API" -PassThru
while ($true) {
$result = $dwmapi::DwmEnableMMCSS($true)
Start-Sleep -Seconds 60
}
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class Win32 {
[DllImport("user32.dll")]
public static extern IntPtr GetForegroundWindow();
[DllImport("user32.dll", SetLastError=true)]
public static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId);
}
"@
$WasForeground = $null
while ($true) {
$foregroundHandle = [Win32]::GetForegroundWindow()
$processId = 0
[Win32]::GetWindowThreadProcessId($foregroundHandle, [ref]$processId) > $null
$foregroundProcessName = try { (Get-Process -Id $processId).ProcessName } catch { "" }
$isForeground = $foregroundProcessName -eq "Game"
if ($isForeground -ne $WasForeground)
{
if ($isForeground)
{ & "D:\Portable\Suspend.exe" chrome.exe > $null }
else
{ & "D:\Portable\Suspend.exe" -r chrome.exe > $null }
$WasForeground = $isForeground
}
Start-Sleep -Seconds 1
}