========================================================================
  RMS TECH  -  WARZONE BOOST   /   Otimizacao para COD Warzone
  by @rms.tech   |   Distribuicao gratuita / Free to share
========================================================================

ARQUIVOS (mantenha os DOIS na mesma pasta):
  - RMS-TECH-WARZONE-BOOST.bat   -> voce clica neste
  - RMS-TECH-WARZONE-BOOST.ps1   -> a interface (nao precisa abrir)

--------------------------  PORTUGUES  ---------------------------------

O QUE E
  Um conjunto de tweaks de Registro do Windows voltado para quem joga
  COD Warzone. O .bat pede admin e abre um menu bonito (setas do
  teclado). Antes de mexer em qualquer coisa ele exporta um backup .reg
  de todas as chaves, e tem a opcao de restaurar.

O QUE ELE FAZ
  - Game DVR / captura em segundo plano desligada
  - Power Throttling desligado (CPU nao "segura" em cargas leves)
  - DWM OverlayTestMode = 5 (desliga o MPO, evita stutter/tearing)
  - Prioridade de GPU/CPU elevada para jogos (Tasks\Games)
  - Prioridade de CPU e I/O elevada automaticamente, via IFEO, para o
    executavel do jogo (COD.exe) toda vez que ele abre - nao
    precisa configurar no Gerenciador de Tarefas a cada partida

COMO USAR
  1. Clique 2x em "RMS-TECH-WARZONE-BOOST.bat" e aceite o "Sim" do
     Windows (UAC = permissao de administrador).
  2. Use as SETAS (cima/baixo) + ENTER. Escolha [1] Aplicar otimizacoes.
  3. Escolha a prioridade de CPU:
       [A] High (3)          -> recomendado, mais ganho
       [B] Above Normal (6)  -> mais suave, se notar instabilidade
  4. Confirme com "S". Ao terminar, REINICIE O PC.

PRESET RMS FPS (CONFIG DO JOGO)  -  opcao [3] do menu
  Ajusta direto os arquivos de configuracao do Call of Duty, em
  %LOCALAPPDATA%\Activision\Call of Duty\players (s.1.0.cod25.txt0,
  s.1.0.cod25.txt1 e s.1.0.cod26.txt). Todos os arquivos encontrados
  recebem os mesmos ajustes. Os grupos se ligam/desligam no menu do preset:
    - GPU / FPS (ligado): SubdivisionLevel, Tessellation, ParticleQuality,
      VolumetricQuality, AmbientLightingQuality, WeatherGridVolumesQuality,
      ShaderQuality, DeferredPhysics, ScreenSpaceShadowQuality,
      ReflectionProbeHalfResolution, ReflectionProbeRelighting, CorpseLimit
    - Proteger as edicoes (ligado): ConfigCloudStorageEnabled = false e
      DisableHWChangeDetection = true (ajuda a manter as edicoes)
    - Memoria de video (DESLIGADO): VideoMemoryScaleMP = 0.85. So para
      placa de 10 GB ou mais
    - Imagem (DESLIGADO): DLSSModelUI = CNN, ModelQuality = Low Quality,
      TerrainQuality e ShadowQuality baixos. Perde qualidade visual
  Alguns ajustes so REDUZEM: se voce ja deixou uma qualidade mais baixa,
  ela nao e subida.
  Seguranca:
    - Recusa aplicar com o jogo aberto: feche o Call of Duty antes
    - Backup de cada arquivo em Documentos\RMS-backup-config-cod\<data-hora>
      antes de gravar
    - Grava num arquivo temporario e so entao substitui o original; se
      algo falhar no meio, volta os arquivos pelo backup
    - So aplica valores que o proprio jogo aceita (lista ou faixa do
      comentario da linha); o que nao for aceito ou nao existir e ignorado
      e aparece no resultado
    - Se a pasta nao existir, abra o jogo uma vez e tente de novo
    - Desfazer: restaura o backup mais recente (com o jogo fechado)

DESFAZER
  Abra de novo e escolha [2] Restaurar ultimo backup. Ele apaga os
  valores adicionados e reimporta o backup .reg mais recente da pasta
  "Backup_RMS_WARZONE". Reinicie o PC depois.

BACKUPS
  Ficam em "Backup_RMS_WARZONE", ao lado dos scripts, por data e
  hora. Nao apague se quiser poder voltar atras.

VISUAL
  Fica perfeito no Windows Terminal (padrao do Windows 11) e no
  console do Windows 10/11 atual. Em janelas muito antigas as cores
  podem nao aparecer - o script continua funcionando igual.

AVISO
  - Windows 10/11 + permissao de administrador.
  - Mexe no Registro. Use por sua conta e risco.
  - Antivirus / SmartScreen podem reclamar de script que pede admin.
    E falso positivo: os arquivos sao texto puro, abra no Bloco de
    Notas e leia. Em "Mais informacoes" > "Executar assim mesmo".
  - O tweak so usa chaves de prioridade do Windows (IFEO/CpuPriorityClass),
    o mesmo que o Gerenciador de Tarefas faz manualmente.
    Nao mexe no launcher (Steam/Battle.net) nem em arquivos do jogo - so
    aponta pro COD.exe.
  - Anti-cheat: o pack nao injeta nada nem altera arquivos do jogo, mas se o
    jogo reclamar de qualquer alteracao, use [2] Restaurar.
  - As mudancas so tem efeito completo depois de reiniciar o PC.
  - Ao terminar de aplicar, o script abre este link no navegador:
    https://otimizar.superpackultimate.com/?de=packs

----------------------------  ENGLISH  --------------------------------

WHAT IT IS
  Windows Registry tweaks aimed at COD Warzone players. The .bat
  elevates and opens an arrow-key menu. It exports a .reg backup of
  every key before changing anything and can restore it.

WHAT IT DOES
  - Game DVR / background capture off
  - Power Throttling off
  - DWM OverlayTestMode = 5 (disables MPO, reduces stutter/tearing)
  - Higher GPU/CPU priority for games (Tasks\Games)
  - Higher CPU/I-O priority automatically, via IFEO, for the game's
    executable (COD.exe) every time it launches - no need to
    set it manually in Task Manager each match

HOW TO USE
  1. Double-click "RMS-TECH-WARZONE-BOOST.bat", accept the UAC prompt.
  2. Arrow keys + Enter. Pick [1] Apply tweaks.
  3. Choose CPU priority:
       [A] High (3)          -> recommended, bigger gain
       [B] Above Normal (6)  -> gentler, if you notice instability
  4. Confirm with "S". When done, RESTART YOUR PC.

RMS FPS PRESET (GAME CONFIG)  -  menu option [3]
  Edits the Call of Duty config files directly, in
  %LOCALAPPDATA%\Activision\Call of Duty\players (s.1.0.cod25.txt0,
  s.1.0.cod25.txt1 and s.1.0.cod26.txt). Every file found gets the same
  changes. Groups can be switched on/off in the preset menu:
    - GPU / FPS (on): SubdivisionLevel, Tessellation, ParticleQuality,
      VolumetricQuality, AmbientLightingQuality, WeatherGridVolumesQuality,
      ShaderQuality, DeferredPhysics, ScreenSpaceShadowQuality,
      ReflectionProbeHalfResolution, ReflectionProbeRelighting, CorpseLimit
    - Protect the edits (on): ConfigCloudStorageEnabled = false and
      DisableHWChangeDetection = true (helps keep the edits)
    - Video memory (OFF): VideoMemoryScaleMP = 0.85. Only for GPUs with
      10 GB or more
    - Image (OFF): DLSSModelUI = CNN, ModelQuality = Low Quality, low
      TerrainQuality and ShadowQuality. Loses visual quality
  Some settings only LOWER: if you already set a quality lower, it is
  not raised back.
  Safety:
    - Refuses to run while the game is open: close Call of Duty first
    - Each file is backed up to Documents\RMS-backup-config-cod\<date-time>
      before writing
    - Writes to a temporary file, then replaces the original; if anything
      fails midway, files are restored from the backup
    - Only applies values the game itself accepts (list or range in the
      line's comment); anything not accepted or missing is skipped and
      shown in the result
    - If the folder does not exist, open the game once and try again
    - Undo: restores the most recent backup (game closed)

UNDO
  Open again, pick [2] Restore last backup. Removes the added values
  and re-imports the newest .reg backup from "Backup_RMS_WARZONE".
  Restart afterwards.

NOTES
  - Windows 10/11, administrator rights.
  - It edits the Registry. Use at your own risk.
  - Antivirus / SmartScreen may flag a self-elevating script. False
    positive - the files are plain text, open and read them.
  - Only uses standard Windows priority keys (IFEO/CpuPriorityClass),
    the same thing Task Manager does manually.
    Does not touch the launcher (Steam/Battle.net) or any game files - it
    only targets COD.exe.
  - Anti-cheat: the pack injects nothing and changes no game files, but if
    the game complains about any change, use [2] Restore.
  - Changes take full effect after restarting the PC.
  - When the optimization finishes, the script opens this link in your
    browser: https://otimizar.superpackultimate.com/?de=packs

========================================================================
  Gostou? Compartilha e segue  @rms.tech
========================================================================
