All Tweaks

Latency & Timers

Complete Latency Optimization

Apply all latency and timer optimizations at once

Benefit

Comprehensive latency reduction in one script

Impact

high

Commands (13)

Run these commands in an elevated PowerShell window (Run as Administrator). This is exactly what CodeWinOptimizer executes for this tweak.

function Invoke-Bcd([string[]]$BcdArgs, [string]$Desc) { $bcd = (Join-Path $env:SystemRoot 'System32\bcdedit.exe'); $out = & $bcd @BcdArgs 2>&1; $outStr = ($out | Out-String); if ($LASTEXITCODE -eq 0) { Write-Host "[OK] $Desc"; return } if ($outStr -match 'No se pudo abrir el almac|cannot open.*boot configuration|boot configuration data store') { Write-Host "[ERR] $Desc - BCD store not accessible from this process. Apply manually from elevated PowerShell."; return } if ($outStr -match 'requested data element|elemento de datos solicitado') { Write-Host "[OK] $Desc (already in target state)"; return } Write-Host "[ERR] $Desc - exit $LASTEXITCODE - $($out -join ' | ')" }
$path = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\kernel'
if (-not (Test-Path $path)) { New-Item -Path $path -Force | Out-Null }
New-ItemProperty -Path $path -Name 'DpcWatchdogProfileOffset' -PropertyType DWord -Value 10000 -Force | Out-Null; Write-Host '[OK] DpcWatchdogProfileOffset=10000'
$path = 'HKLM:\SYSTEM\CurrentControlSet\Control\PriorityControl'
if (-not (Test-Path $path)) { New-Item -Path $path -Force | Out-Null }
New-ItemProperty -Path $path -Name 'Win32PrioritySeparation' -PropertyType DWord -Value 38 -Force | Out-Null; Write-Host '[OK] Win32PrioritySeparation=38'
New-ItemProperty -Path $path -Name 'IRQ8Priority'  -PropertyType DWord -Value 1 -Force | Out-Null; Write-Host '[OK] IRQ8Priority=1'
New-ItemProperty -Path $path -Name 'IRQ16Priority' -PropertyType DWord -Value 2 -Force | Out-Null; Write-Host '[OK] IRQ16Priority=2'
Invoke-Bcd @('/set','{current}','disabledynamictick','yes') 'BCD disabledynamictick=yes'
Invoke-Bcd @('/set','{current}','useplatformclock','true') 'BCD useplatformclock=true'
$bogus='HKLM:\SYSTEM\CurrentControlSet\Control\KernelVelocity'; if (Test-Path $bogus) { Remove-Item -Path $bogus -Recurse -Force -ErrorAction SilentlyContinue; Write-Host '[OK] Cleaned up legacy KernelVelocity key' }
Write-Host 'All latency optimizations applied. Please restart Windows.'

Warnings

  • Restart Windows for all changes to take effect properly.

How to revert this tweak

  • In CodeWinOptimizer: disable the tweak again — the app restores the original values it recorded when it was applied.
  • Manually: reverse the change — re-enable the service, delete the registry value you created, or restore the previous value shown when you ran the commands.
  • With System Restore: press Win + R, run rstrui, and select the restore point that was created before the change.

Frequently asked questions

Do I need to restart?

Some changes apply immediately (many registry and network values). Others — services, GPU scheduling, power settings — only take full effect after signing out or restarting. If the change seems to have no effect, restart before troubleshooting.

Will it survive Windows updates?

Most values persist, but major Windows feature updates can reset policies, services and scheduled tasks. After a big update, come back to this page and re-check the tweak — the app also shows the current state before applying anything.

Is it reversible?

Yes, but this is a high-impact tweak: create a system restore point before applying it. You can revert it from CodeWinOptimizer (which records the original values), by restoring the previous values manually, or with System Restore.

Can I apply it manually?

Yes — every command listed above is exactly what the app runs. Open PowerShell as Administrator and run them one at a time, checking the output. For a guided flow with a restore point and one-click revert, use the app.

Related tweaks