Open alaestor opened 1 day ago
What version of Java are you using?
Is the problem reproducible with OpenJDK?
Java 17 for 1.19.2
I've tried two packages. Here are the java --version
outputs:
openjdk 17.0.10 2024-01-16 LTS
OpenJDK Runtime Environment Zulu17.48+15-CA (build 17.0.10+7-LTS)
OpenJDK 64-Bit Server VM Zulu17.48+15-CA (build 17.0.10+7-LTS, mixed mode, sharing)
openjdk 17.0.12 2024-07-16
OpenJDK Runtime Environment (build 17.0.12+7-nixos)
OpenJDK 64-Bit Server VM (build 17.0.12+7-nixos, mixed mode, sharing)
For good measure, here's my modlist and a log file. log.txt modlist.md
However, I was able to replicate minor desktop shell lag / hitching with a more minimal instance. The problem becomes more pronounced with higher frequencies of memory allocations / deallocations, so it gets worse (and it takes longer to recover) with a big list and more busy world. With that said, I'm sure my naive "throw optimization mods at the wall and see what sticks for lols" approach isn't helping matters.
MC 1.19.2 Forge with FPS Monitor 1.3.0 on KDE Plasma 6 X11 can result in the shell becoming unresponsive.
It seems to correlate to rapid changes in memory usage, which can be the case when using large modpacks with optimization mods.
I've confirmed that the window title is to blame: setting
game_window_info = false
infps-client.toml
seems to solve the problem. I haven't taken a look at your code but if you're using callbacks or interrupts then I'd recommend switching to fixed-interval / cooldown approach for title changes.