-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
新功能:自动修改显卡设置 #5845
新功能:自动修改显卡设置 #5845
Conversation
直接用现有的注册表相关方法就行,同样可以参考社区版 = = |
End Try | ||
'更新设置 | ||
Try | ||
If Not IsAdmin() Then RunAsAdmin("") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里大概不应该直接重启 PCL……如果没有权限的话,弹一个 Hint 然后跳过处理会比较好
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是说RunAsAdmin需要重启吗?这个确实不知道,应该跟内存优化是一样的,但是内存优化又没有放出来
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是说RunAsAdmin需要重启吗?这个确实不知道,应该跟内存优化是一样的,但是内存优化又没有放出来
出于安全考虑,主流操作系统一般不会允许修改进程权限,所以 RunAsAdmin 确实是需要重启的
@@ -170,6 +170,13 @@ | |||
</Grid> | |||
</StackPanel> | |||
</local:MyCard> | |||
<local:MyCard Margin="0,0,0,15" Title="显示卡" CanSwap="True" IsSwaped="True"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议放到高级设置里,不要单开一个卡片
我自己改了…… |
多Java情况下手动设置“高性能”既麻烦又不优雅,直接把改注册表集成进启动器