AlmasB / FXGLGames

This repo contains sample games built with FXGL
http://almasb.github.io/FXGLGames/
MIT License
807 stars 325 forks source link

enable ZGC by default? #14

Open chengenzhao opened 3 years ago

chengenzhao commented 3 years ago

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 commented 3 years ago

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

chengenzhao commented 3 years ago

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