-
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(windows): allow setting memory usage target level to reduce memo…
…ry consumption of inactive application (#1053) * feat(windows): Allow setting memory usage target level Signed-off-by: rhysd <[email protected]> * chore(doc): clarify `WebviewExtWindows::set_low_memory_usage` does nothing with WebView2 earlier than v1.0.1020.30 Signed-off-by: rhysd <[email protected]> * chore(doc): apply review suggestions by @FabianLars Co-authored-by: Fabian-Lars <[email protected]> * feat(windows): change the memory usage level to `MemoryUsageLevel` enum Signed-off-by: rhysd <[email protected]> * use en-us link --------- Signed-off-by: rhysd <[email protected]> Co-authored-by: Fabian-Lars <[email protected]>
- Loading branch information
1 parent
2939072
commit f420665
Showing
3 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"wry": patch | ||
--- | ||
|
||
Add `WebviewExtWindows::set_memory_usage_level` API to set the [memory usage target level](https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2memoryusagetargetlevel) on Windows. Setting 'Low' memory usage target level when an application is going to inactive can significantly reduce the memory consumption. Please read the [guide for WebView2](https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/specs/MemoryUsageTargetLevel.md) for more details. |
This file contains 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
This file contains 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