From 99c0ad3bc6b8c0015969a38e2d4f675765000708 Mon Sep 17 00:00:00 2001 From: nick <62725534+nicklvh@users.noreply.github.com> Date: Sun, 14 Jul 2024 19:41:51 +0100 Subject: [PATCH] feat(perf): respect power modes search indexing (#1147) --- src/playbook/Configuration/tweaks.yml | 1 + .../tweaks/performance/respect-power-modes-search.yml | 9 +++++++++ .../Search Indexing/Enable Search Indexing.cmd | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 src/playbook/Configuration/tweaks/performance/respect-power-modes-search.yml diff --git a/src/playbook/Configuration/tweaks.yml b/src/playbook/Configuration/tweaks.yml index a856f1d8eb..a3ba275e3f 100644 --- a/src/playbook/Configuration/tweaks.yml +++ b/src/playbook/Configuration/tweaks.yml @@ -52,6 +52,7 @@ actions: - !task: {path: 'tweaks\performance\disable-background-apps.yml'} - !task: {path: 'tweaks\performance\disable-fth.yml'} - !task: {path: 'tweaks\performance\disable-sleep-study.yml'} + - !task: {path: 'tweaks\performance\respect-power-modes-search.yml'} # -------------------------------------------------------------------------- # diff --git a/src/playbook/Configuration/tweaks/performance/respect-power-modes-search.yml b/src/playbook/Configuration/tweaks/performance/respect-power-modes-search.yml new file mode 100644 index 0000000000..f212f03cfa --- /dev/null +++ b/src/playbook/Configuration/tweaks/performance/respect-power-modes-search.yml @@ -0,0 +1,9 @@ +--- +title: Respect Power Modes Windows Search Indexing +description: Enables the option to respect power modes for Windows Search Indexing, to prevent performance loss during gaming or other high-performance tasks +actions: + - !registryValue: + path: 'HKLM\Software\Microsoft\Windows Search\Gather\Windows\SystemIndex' + value: 'RespectPowerModes' + data: '1' + type: REG_DWORD diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Search Indexing/Enable Search Indexing.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Search Indexing/Enable Search Indexing.cmd index e448c8bb87..8c3b880b29 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Search Indexing/Enable Search Indexing.cmd +++ b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Search Indexing/Enable Search Indexing.cmd @@ -20,6 +20,9 @@ fltmc > nul 2>&1 || ( ) > nul call "%windir%\AtlasModules\Scripts\settingsPages.cmd" /unhide cortana-windowssearch +:: Respect Power Settings when Search Indexing to prevent performance loss during gaming or other high-performance tasks +reg add "HKLM\Software\Microsoft\Windows Search\Gather\Windows\SystemIndex" /v "RespectPowerModes" /t REG_DWORD /d "1" /f + if "%~1"=="/silent" exit /b echo Finished, please reboot your device for changes to apply. pause