fix(scripts): bypass PowerShell execution policy in PLAY_FRAMEGEN.cmd and fix Windows 11 HAGS check #31

Manually merged
github merged 1 commit from github-bot/gh-31 into main 2026-11-27 11:02:39 +00:00 AGit
Owner

@⁠wike1701 on GitHub · 2026-11-27 10:47 UTC · original
wike1701:fix/play-framegen-policy-and-hags → main · +13 −4 · 2 files · 1 commits · merged 2026-11-27 11:00 UTC

Fixes two issues hit when running \PLAY_FRAMEGEN.cmd\ on a standard Windows 11 setup:

  1. PowerShell execution policy block: \PLAY_FRAMEGEN.cmd\ invoked \powershell -NoProfile -File\ without -ExecutionPolicy Bypass, which fails with \SecurityError / UnauthorizedAccess\ on Windows systems with the default \Restricted\ policy. Added -ExecutionPolicy Bypass\ to both the \check\ and run invocations.
  2. False \HAGS: off\ warning on Windows 11: On Windows 11 (build >= 22000), Hardware-Accelerated GPU Scheduling is enabled by default on supported GPUs without always creating the legacy \HwSchMode\ registry value until toggled. Checking only \ -eq 2\ reported \HAGS: off\ even when HAGS was enabled in Windows Settings. Now \HwSchMode = 1\ is reported as off, \2\ as on, and absent on Windows 11 as \default (on in Windows 11).

Verification

Tested \PLAY_FRAMEGEN.cmd check\ on Windows 11 (RTX 5060 Ti 16 GB, default PowerShell policy):

  • Runs cleanly with no execution-policy error.
  • Reports \HAGS: default (on in Windows 11).
**@⁠wike1701** on GitHub · 2026-11-27 10:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/31) `wike1701:fix/play-framegen-policy-and-hags` → `main` · +13 −4 · 2 files · 1 commits · merged 2026-11-27 11:00 UTC Fixes two issues hit when running \PLAY_FRAMEGEN.cmd\ on a standard Windows 11 setup: 1. **PowerShell execution policy block:** \PLAY_FRAMEGEN.cmd\ invoked \powershell -NoProfile -File\ without \-ExecutionPolicy Bypass\, which fails with \SecurityError / UnauthorizedAccess\ on Windows systems with the default \Restricted\ policy. Added \-ExecutionPolicy Bypass\ to both the \check\ and run invocations. 2. **False \HAGS: off\ warning on Windows 11:** On Windows 11 (build >= 22000), Hardware-Accelerated GPU Scheduling is enabled by default on supported GPUs without always creating the legacy \HwSchMode\ registry value until toggled. Checking only \\ -eq 2\ reported \HAGS: off\ even when HAGS was enabled in Windows Settings. Now \HwSchMode = 1\ is reported as off, \2\ as on, and absent on Windows 11 as \default (on in Windows 11)\. ### Verification Tested \PLAY_FRAMEGEN.cmd check\ on Windows 11 (RTX 5060 Ti 16 GB, default PowerShell policy): - Runs cleanly with no execution-policy error. - Reports \HAGS: default (on in Windows 11)\.
- Pass -ExecutionPolicy Bypass when PLAY_FRAMEGEN.cmd invokes scripts/play-gta6-framegen.ps1 so double-clicking works on default Windows PowerShell settings (Restricted).
- Treat an absent HwSchMode registry value on Windows 11 (build >= 22000) as default-enabled instead of printing a false 'HAGS: off' warning; HwSchMode=1 is still reported as off.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:50:53 +00:00
github manually merged commit 959dcaf609 into main 2026-11-27 11:02:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.