Início /
Otimização de Memória
🧠 Otimização de Memória
Page file, LargeSystemCache, compressão e patches Meltdown/Spectre
🗁️ Desativar Compressão de RAM
Disable Memory Compression powershell
Disable-MMAgent -MemoryCompression 🔓 Desativar Meltdown/Spectre
Melhora desempenho desativando mitigações de segurança (apenas para jogos):
Kernel-Managed Memory powershell
$path = "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"
New-ItemProperty -Path $path -Name "FeatureSettings" -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path $path -Name "FeatureSettingsOverride" -PropertyType DWord -Value 3 -Force
New-ItemProperty -Path $path -Name "FeatureSettingsOverrideMask" -PropertyType DWord -Value 3 -Force 💾 DisablePagingExecutive
Evita que drivers sejam paginados para memória virtual:
Manter drivers na RAM powershell
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "DisablePagingExecutive" -PropertyType DWord -Value 1 -Force 📊 LargeSystemCache
| 0: | ~8 MB cache (recomendado jogos) |
| 1: | Até RAM-4MB (LAN throughput) |
Configurar para jogos powershell
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "LargeSystemCache" -PropertyType DWord -Value 0 -Force ⚠️
⚠️ Nota
Valor 1 melhora transferências LAN mas pode ter problemas com drivers ATI/AMD. Para jogos, usar 0.
📄 Configurar Page File
Page file grande (32GB) melhora microstuttering:
Configurar page file de 32GB powershell
wmic computersystem where name="%computername%" set AutomaticManagedPagefile=False
wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=32768,MaximumSize=32768 ⚠️
⚠️ Aviso
O sistema pode ficar instável se você não tiver RAM suficiente. Reinicie após aplicar.
🔐 Proteção NTFS/ReFS
Desativar mitigações adicionais powershell
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager" -Name "ProtectionMode" -PropertyType DWord -Value 0 -Force ⏱️ Prioridade Realtime para csrss.exe
Configurar prioridade máxima powershell
$path = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\csrss.exe\PerfOptions"
New-Item -Path $path -Force | Out-Null
New-ItemProperty -Path $path -Name "CpuPriorityClass" -PropertyType DWord -Value 4 -Force
New-ItemProperty -Path $path -Name "IoPriority" -PropertyType DWord -Value 3 -Force 💡
💡 Resumo
Essas otimizações melhoram desempenho em jogos mas reduzem segurança e estabilidade. Aplicar apenas em PCs dedicados exclusivamente a jogos.