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

新功能:自动修改显卡设置 #5845

Merged
merged 4 commits into from
Mar 17, 2025
Merged

Conversation

nanhuajiaren
Copy link
Contributor

多Java情况下手动设置“高性能”既麻烦又不优雅,直接把改注册表集成进启动器

@shimoranla shimoranla added · 新功能 等待确认 已经过社区确认,等待开发者确认 labels Mar 13, 2025
@shimoranla shimoranla requested a review from LTCatt March 13, 2025 09:20
@Pigeon0v0
Copy link
Collaborator

直接用现有的注册表相关方法就行,同样可以参考社区版 = =

End Try
'更新设置
Try
If Not IsAdmin() Then RunAsAdmin("")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里大概不应该直接重启 PCL……如果没有权限的话,弹一个 Hint 然后跳过处理会比较好

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是说RunAsAdmin需要重启吗?这个确实不知道,应该跟内存优化是一样的,但是内存优化又没有放出来

Copy link
Collaborator

@shimoranla shimoranla Mar 14, 2025

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">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议放到高级设置里,不要单开一个卡片

@LTCatt LTCatt added 等待提交者 需要提交者补充信息或进行操作 🟥 高 优先度:高 完成 已被处理,将在下次更新之后生效 and removed 等待确认 已经过社区确认,等待开发者确认 等待提交者 需要提交者补充信息或进行操作 labels Mar 13, 2025
@LTCatt
Copy link
Member

LTCatt commented Mar 17, 2025

我自己改了……

@LTCatt LTCatt merged commit de303f4 into Hex-Dragon:main Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· 优化 完成 已被处理,将在下次更新之后生效 🟥 高 优先度:高
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants