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

JVM 参数需要优化 #1889

Closed
Glavo opened this issue Nov 30, 2022 · 3 comments
Closed

JVM 参数需要优化 #1889

Glavo opened this issue Nov 30, 2022 · 3 comments

Comments

@Glavo
Copy link
Member

Glavo commented Nov 30, 2022

目前的默认参数可能不是最优选项,或许应调整默认 JVM 参数改进游戏性能。

@ZekerZhayard
Copy link
Contributor

ZekerZhayard commented Nov 30, 2022

补充一个:目前 HMCL 默认参数中不知为何加了 -Xmn256M,我个人猜测应当是 -Xms256M

@huanghongxun
Copy link
Collaborator

xmn256m应该是对齐官方启动器的启动参数而设置的

@ZekerZhayard
Copy link
Contributor

xmn256m应该是对齐官方启动器的启动参数而设置的

官启的默认参数是

-Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

Glavo added a commit to Glavo/HMCL that referenced this issue Dec 3, 2022
huanghongxun pushed a commit that referenced this issue Dec 6, 2022
* Adjust JVM arguments priority

* #1889: Use the default JVM arguments consistent with the official launcher

* Follow -Xmx settings in modpack info

* Do not force generation of -Xmx
@Glavo Glavo closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants