FXGLGames icon indicating copy to clipboard operation
FXGLGames copied to clipboard

enable ZGC by default?

Open chengenzhao opened this issue 5 years ago • 2 comments

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

chengenzhao avatar Mar 30 '21 01:03 chengenzhao

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

AlmasB avatar Mar 30 '21 09:03 AlmasB

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

chengenzhao avatar Mar 30 '21 23:03 chengenzhao