* Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
No-Citron-23222025-12-08 05:48
ITS JAVA, VERSION 1.21.10 ( DESKTOP )
No-Citron-23222025-12-08 05:51
does the video work? it says "This video cannot be played."
_vogonpoetry_2025-12-08 06:01
The lag occurs when memory usage drops, which means its caused by a Java Garbage Collection event. I dont know why this is causing such bad lags for you in particular but these "performance" clients like Lunar do a lot of weird things. The easiest way to fix the problem (or at least cover it up), is to use a pauseless GC like Gen ZGC. I dont know if Lunar even allows you to change JVM arguments, but to try it remove all current arguments and add the following-
-Xmx4G -XX:+UseZGC -XX:+ZGenerational
No-Citron-23222025-12-08 06:20
Thank you! I tried it and it seems to be better with the freezing issue :)
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
-Xmx4G -XX:+UseZGC -XX:+ZGenerational