feat: add PowerMode for low-resource environments#2920
Open
carlosedsousa-dev wants to merge 12 commits into
Open
feat: add PowerMode for low-resource environments#2920carlosedsousa-dev wants to merge 12 commits into
carlosedsousa-dev wants to merge 12 commits into
Conversation
Add Normal/Balanced/PowerSaving power mode to SettingsData with persistence and system power profile synchronization support.
Disable M3 elevation, parallax live source and reduce blurMax (96→48) when PowerMode is PowerSaving to reduce GPU overhead.
Relax high-frequency timers to reduce CPU wake-ups: - groupsDebounce 16→50ms, DankSeekbar 80→200ms, scrollTimer 50→150ms - Disable DankAlbumArt blob animation entirely in PowerSaving
Add Normal/Balanced/PowerSaving button group in Typography & Motion tab before Animation Speed, allowing users to switch PowerMode directly.
Only instantiate enabled desktop widgets instead of creating all and hiding disabled ones, reducing startup overhead and memory usage.
- WallpaperBackground: halve textureSize for all ShaderEffectSources (less VRAM) - PowerMenuModal: holdTimer 16→32ms (slower hold-to-confirm) - DgopService: active polling 3000→5000ms (less frequent process stats)
- Add 75ms debounce for app search queries (Controller) - Precompute normalized fields on desktop entry change (AppSearchService) - Cache query results with version-based invalidation (AppSearchService) - Skip fuzzy matching when already at max results (AppSearchService)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
DankMaterialShell has significant GPU and CPU overhead from shader effects, high-frequency timers, and continuous background monitoring. This PR adds a centralized PowerMode system to make the shell viable on low-resource hardware (2GB RAM, weak CPU).
Changes
Infrastructure
PowerModeenum (Normal,Balanced,PowerSaving) toSettingsDatapowerModesetting with persistencesyncPowerModeWithSystemfor automatic switching via system power profilePowerSaving optimizations
Dev tooling
mise.tomlfor dev tool version management.github/PULL_REQUEST_TEMPLATE.mdTesting
Screenshots / Video
test.mp4