Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(perf): respect power modes search indexing #1147

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading