Skip to content

Commit

Permalink
feat(perf): respect power modes search indexing (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklvh authored Jul 14, 2024
1 parent af86f12 commit 99c0ad3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/playbook/Configuration/tweaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'}


# -------------------------------------------------------------------------- #
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99c0ad3

Please sign in to comment.