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

enable ZGC by default? #14

Open
chengenzhao opened this issue Mar 30, 2021 · 2 comments
Open

enable ZGC by default? #14

chengenzhao opened this issue Mar 30, 2021 · 2 comments

Comments

@chengenzhao
Copy link
Contributor

chengenzhao commented Mar 30, 2021

Hi:

Openjdk 16 is released
and it supports ZGC which could make gc pause lower than 1ms
so is it possible to enable ZGC by default?

<options>
  <option>-XX:+UseZGC</option>
</optoins>

thx

@AlmasB
Copy link
Owner

AlmasB commented Mar 30, 2021

Hi, I don't know much about ZGC, but will investigate

@chengenzhao
Copy link
Contributor Author

We tried enable ZGC on FXGL games
and based on the console debug info.
Before(using default G1 gc strategy) the gc pause is ~280 or even higher
using ZGC, the gc pause decreased to ~30

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

2 participants