Skip to content

[Bug] 启动器在后台时,动态壁纸仍会持续消耗GPU #1701

@hanuxxx

Description

@hanuxxx

Checklist

  • My issue was not mentioned by others, and it is not a duplicate issue.

Description

无论是点最小化还是不点最小化,放后台仍然占用GPU,在我的轻薄本上体现为功耗显著增加,风扇噪声明显

Reproduction Steps

在我的核显笔记本上看任务管理器,前台播放动态壁纸GPU会占用40%左右
测试了两种后台的情况
一、不点最小化,直接有其他最大化窗口覆盖整个屏幕
此时后台正常播放,GPU占用仍在40%左右

二、点最小化
此时GPU占用为25%,占用有降低,但是比静置状态功耗还是高很多

三、直接叉掉完全退出启动器
此时GPU占用为2%左右,作为静置状态的参考

希望参考#1590 (comment) 的建议,当窗口不在焦点时自动暂停

Expected Behavior

No response

Screenshots

No response

Starward Version

0.16.0

Windows Version

26200.7462

Log

[08:47:44.349] [INFO] [Starward.exe (30300)] 
Welcome to Starward v0.15.9
System: Microsoft Windows NT 10.0.26200.0
Command Line: C:\Programs\Starward\app-0.15.9\Starward.dll

[08:47:45.096] [INFO] [Starward.exe (30300)] Starward.Features.Update.UpdateService
Current version: "0.15.9", latest version: "0.16.0", ignore version: null.

[08:47:59.800] [INFO] [Starward.RPC.exe (36480)] 
Welcome to Starward RPC v0.15.9
System: Microsoft Windows NT 10.0.26200.0
Command Line: C:\Programs\Starward\app-0.15.9\Starward.RPC.dll zb8L3ShgFjeyDxeA 30300

[08:47:59.811] [INFO] [Starward.RPC.exe (36480)] 
Set parent process: 30300, keepRunning: False, noLongerChange: False

[08:47:59.887] [INFO] [Starward.RPC.exe (36480)] Microsoft.Hosting.Lifetime
Now listening on: "http://pipe:/Starward.RPC/7/0.15.9"

[08:47:59.888] [INFO] [Starward.RPC.exe (36480)] Microsoft.Hosting.Lifetime
Application started. Press Ctrl+C to shut down.

[08:47:59.888] [INFO] [Starward.RPC.exe (36480)] Microsoft.Hosting.Lifetime
Hosting environment: "Production"

[08:47:59.888] [INFO] [Starward.RPC.exe (36480)] Microsoft.Hosting.Lifetime
Content root path: "C:\Programs\Starward"

[08:47:59.968] [INFO] [Starward.RPC.exe (36480)] Starward.RPC.GameInstall.GameInstallHelper
Set downloading rate limiter: 0 bytes/s

[08:47:59.983] [INFO] [Starward.RPC.exe (36480)] Starward.RPC.Update.UpdateController
Start to update ("0.16.0"), target path: "C:\Programs\Starward".

[08:48:02.094] [INFO] [Starward.RPC.exe (36480)] Starward.RPC.Update.UpdateService
Prepare for update starward

[08:48:02.471] [INFO] [Starward.RPC.exe (36480)] Starward.RPC.Update.UpdateService
Update Starward, downloading 581 files

[08:48:18.408] [INFO] [Starward.RPC.exe (36480)] Starward.RPC.Update.UpdateService
Update Starward, patching and verifying files

[08:48:22.189] [INFO] [Starward.RPC.exe (36480)] Starward.RPC.Update.UpdateService
Update Starward finished

[08:48:22.189] [INFO] [Starward.RPC.exe (36480)] Starward.RPC.Update.UpdateService
Update finished

[08:48:23.621] [INFO] [Starward.exe (33692)] 
Welcome to Starward v0.16.0
System: Microsoft Windows NT 10.0.26200.0
Command Line: C:\Programs\Starward\app-0.16.0\Starward.dll

[08:57:38.094] [INFO] [Starward RPC (3312)] 
Welcome to Starward RPC v0.16.0
System: Microsoft Windows NT 10.0.26200.0
Command Line: C:\Programs\Starward\app-0.16.0\Starward.dll rpc zb8L3ShgFjeyDxeA 33692

[08:57:38.108] [INFO] [Starward RPC (3312)] 
Set parent process: 33692, keepRunning: False, noLongerChange: False

[08:57:38.163] [INFO] [Starward RPC (3312)] Microsoft.Hosting.Lifetime
Now listening on: "http://pipe:/Starward.RPC/7/0.16.0"

[08:57:38.164] [INFO] [Starward RPC (3312)] Microsoft.Hosting.Lifetime
Application started. Press Ctrl+C to shut down.

[08:57:38.164] [INFO] [Starward RPC (3312)] Microsoft.Hosting.Lifetime
Hosting environment: "Production"

[08:57:38.164] [INFO] [Starward RPC (3312)] Microsoft.Hosting.Lifetime
Content root path: "C:\Programs\Starward"

[08:57:38.230] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallHelper
Set downloading rate limiter: 0 bytes/s

[08:57:38.233] [INFO] [Starward.exe (33692)] Starward.Features.GameInstall.GameInstallService
Start game install task: 
Operation: Update
GameId: "1Z8W5NHUQb" "hk4e_cn"
InstallPath: "C:\Program Files\miHoYo Launcher\games\Genshin Impact Game"
AudioLanguage: Chinese
HardLinkPath: null

[08:57:38.245] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
Start game install task: 
Operation: Update
GameId: "1Z8W5NHUQb" "hk4e_cn"
InstallPath: "C:\Program Files\miHoYo Launcher\games\Genshin Impact Game"
AudioLanguage: Chinese
HardLinkPath: null

[08:57:39.107] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GamePackageService
Prepare game package ("hk4e_cn") finished:
Operation: Update
DefaultDownloadMode: "DOWNLOAD_MODE_CHUNK"
LatestGameVersion: "6.2.0"
PredownloadVersion: null
LocalGameVersion: "6.1.0"
GameSophonChunkBuild: null
LocalVersionSophonChunkBuild: null
GameSophonPatchBuild: "6.2.0"
GamePackage: null
GameChannelSDK: null
DeprecatedFileConfig: 18
TaskFiles: 2624
DownloadMode: Patch
WPFVersion: "6.2.0.39944325"

[08:57:40.781] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hk4e_cn"): Start downloading in mode patch

[09:01:34.823] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hk4e_cn"): Start merging in mode patch, file count: 2624

[09:03:13.131] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hk4e_cn"): Delete files by SophonPatchDeleteFiles, file count: 3

[09:03:13.132] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hk4e_cn"): Start downloading WPFPackage

[09:03:23.548] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hk4e_cn"): Start downloading GameChannelSDK

[09:03:23.557] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hk4e_cn"): Set config.ini, path: "C:\Program Files\miHoYo Launcher\games\Genshin Impact Game\config.ini"

[09:03:25.069] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hk4e_cn"): Clear deprecated files, count: 0

[09:03:25.069] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask Finished, GameBiz: "hk4e_cn", Operation: Update

[09:23:41.767] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallHelper
Set downloading rate limiter: 0 bytes/s

[09:23:41.768] [INFO] [Starward.exe (33692)] Starward.Features.GameInstall.GameInstallService
Start game install task: 
Operation: Update
GameId: "64kMb5iAWu" "hkrpg_cn"
InstallPath: "C:\Program Files\miHoYo Launcher\games\Star Rail Game"
AudioLanguage: Chinese
HardLinkPath: null

[09:23:41.769] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
Start game install task: 
Operation: Update
GameId: "64kMb5iAWu" "hkrpg_cn"
InstallPath: "C:\Program Files\miHoYo Launcher\games\Star Rail Game"
AudioLanguage: Chinese
HardLinkPath: null

[09:23:43.351] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GamePackageService
Prepare game package ("hkrpg_cn") finished:
Operation: Update
DefaultDownloadMode: "DOWNLOAD_MODE_CHUNK"
LatestGameVersion: "3.8.0"
PredownloadVersion: null
LocalGameVersion: "3.6.0"
GameSophonChunkBuild: "3.8.0"
LocalVersionSophonChunkBuild: "3.6.0"
GameSophonPatchBuild: null
GamePackage: null
GameChannelSDK: null
DeprecatedFileConfig: null
TaskFiles: 8093
DownloadMode: Chunk
WPFVersion: null

[09:23:45.166] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hkrpg_cn"): Start downloading in mode chunk

[09:28:19.827] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hkrpg_cn"): Start downloading GameChannelSDK

[09:28:19.828] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hkrpg_cn"): Set config.ini, path: "C:\Program Files\miHoYo Launcher\games\Star Rail Game\config.ini"

[09:28:19.857] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask ("hkrpg_cn"): Clear deprecated files, count: 0

[09:28:19.858] [INFO] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
GameInstallTask Finished, GameBiz: "hkrpg_cn", Operation: Update

[09:45:11.492] [EROR] [Starward RPC (3312)] Starward.RPC.GameInstall.GameInstallService
Cancel all install task
System.InvalidOperationException: Process has exited, so the requested information is not available.
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.get_ProcessName()
   at Starward.RPC.GameInstall.GameInstallService.LifecycleManager_ParentProcessExited(Object sender, Process e) in D:\a\Starward\Starward\src\Starward.RPC\GameInstall\GameInstallService.cs:line 72

[09:46:08.905] [INFO] [Starward.exe (26960)] 
Welcome to Starward v0.16.0
System: Microsoft Windows NT 10.0.26200.0
Command Line: C:\Programs\Starward\app-0.16.0\Starward.dll

[09:46:11.198] [INFO] [Starward.exe (26960)] Starward.Features.Update.UpdateService
Current version: "0.16.0", latest version: "0.16.0", ignore version: null.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions