Skip to content

Add Expert latency bake (BCD + timer registry) - #106

Merged
usrname1git merged 3 commits into
mainfrom
reclaim11-latency-bake
Sep 5, 2026
Merged

Add Expert latency bake (BCD + timer registry)#106
usrname1git merged 3 commits into
mainfrom
reclaim11-latency-bake

Conversation

@usrname1git

Copy link
Copy Markdown
Owner

Expert-only in-Windows bake of the operator BCD/timer recipe. Not pack A, not startnet, not noob, not a power scheme.

BCD {current}: nx AlwaysOff (DEP off), tscsyncpolicy Enhanced, hypervisorlaunchtype Auto, vsmlaunchtype Off, sos No, useplatformclock No, useplatformtick No, disabledynamictick Yes.
BCD {bootmgr}: bootmenupolicy Legacy.
HKLM: GlobalTimerResolutionRequests=1, SystemResponsiveness=0, Win32PrioritySeparation=38.

  • restore.json first. Restore: pwsh -File latency_bake.ps1 -Restore restore.json.
  • Desk (IoTEnterpriseS) refused. WinPE MiniNT refused (that would write the PE BCD).
  • -T / TEST SELECTED: mutate=false, no /set.
  • High Performance / AGGRO stay out (Start-CS2 is a separate desk door).
  • Copied onto ISO/USB/offline kit so the Expert GUI can run it after PE; PE itself does not apply it.

Test-Reclaim11.ps1 green on this host. WhatIf on M1ABRAMS reports would_refuse desk and does not write restore.json.

Do not merge until operator GO. Do not boot this bake on the IoT desk.

VM-only Expert door: nx AlwaysOff, TSC Enhanced, dynamic tick off, plus
GlobalTimerResolutionRequests / SystemResponsiveness / Win32PrioritySeparation.
restore.json first. IoT desk and WinPE MiniNT refuse. Not a power scheme.
Copilot AI lite review requested due to automatic review settings September 5, 2026 08:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new latency bake currently writes restore.json only after attempting mutations, risking applied changes without an on-disk restore manifest if interrupted.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds an expert-only “latency bake” workflow to Reclaim11 that applies an operator BCD + timer/MMCSS registry recipe from within Windows (while explicitly refusing Desk SKU and WinPE), and wires it through the Expert UI and WinPE kit packaging.

Changes:

  • Introduces latency_bake.ps1 with apply/what-if/restore flows for BCD {current} / {bootmgr} and HKLM timer/MMCSS settings.
  • Wires the feature into the Expert UI (XAML + Reclaim11.ps1 click handlers) and extends Test-Reclaim11.ps1 coverage.
  • Ensures WinPE ISO/USB builders and the offline kit drop include latency_bake.ps1, while tests enforce it is not executed from PE/startnet.
File summaries
File Description
scripts/Test-Reclaim11.ps1 Extends regression tests to cover the new UI toggle/button wiring and latency bake behavior/constraints.
scripts/New-Reclaim11WinPeUsb.ps1 Adds latency_bake.ps1 to the WinPE USB kit file list.
scripts/New-Reclaim11WinPeIso.ps1 Adds latency_bake.ps1 to the WinPE ISO kit copy list.
godbrain_core/reclaim11/winpe/offline.ps1 Includes latency_bake.ps1 in the PE “kit drop” payload.
godbrain_core/reclaim11/ui/MainWindow.xaml Adds the Expert checkbox BtnLatency (“Latency bake”).
godbrain_core/reclaim11/README.md Documents the latency bake recipe, constraints, and restore command.
godbrain_core/reclaim11/ps1/Reclaim11.ps1 Loads latency bake script, adds UI binding + run/test execution paths and inventory JSON output.
godbrain_core/reclaim11/ps1/latency_bake.ps1 New expert script implementing the latency bake apply/what-if/restore logic.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +204 to +205
New-Item -ItemType Directory -Path $backupRoot -Force | Out-Null
$applied = @()
Autismo added 2 commits September 5, 2026 11:16
Active scheme plus High Performance: selective suspend off, USB 3 LPM
off, PCIe ASPM off. Refuse AGGRO/Ultimate. Do not pin min processor
or disable idle. HP as a 24/7 plan stays Start-CS2.
Same two-write as NIC. Tests lock MiniNT throw and write-before-/set
so a mid-bake crash still has a restore file.
@usrname1git
usrname1git merged commit 939a22c into main Sep 5, 2026
@usrname1git
usrname1git deleted the reclaim11-latency-bake branch September 5, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants