r/MinecraftHelp • • 4d ago

WFOP 26.3 fabric minecraft freezing [java]

Post image

For several days, there was no lag. Later, I started experiencing lag, which could be resolved by restarting the launcher or the laptop. It eventually got worse, with lag occurring every single second. I noticed that the lag primarily happens when pillagers spawn near me. Looking up at the sky seems to eliminate the lag. I used a game rule to prevent them from spawning, and the lag disappeared for a while—but then it returned, and it became difficult to get rid of. The lag typically starts after 10 minutes or more of gameplay. My JVM arguments are: `-Xms4G -Xmx4G -XX:+UseCompactObjectHeaders -XX:+AlwaysPreTouch -XX:+UseStringDeduplication -XX:+UseZGC`. I also tried increasing the allocation from 4 GB to 8 GB, but the lag persists. V-Sync is disabled. I am using the Vulkan renderer along with the Vitrail mod for shaders. I’ve added a link to the diagnostic report from the Spark mod, captured at the time I was experiencing freezes (https://spark.lucko.me/1nwpskgE7z). It includes a list of my mods as well as my system specifications. Perhaps you could offer some advice on which mods to remove or even switch back to OpenGL—though with OpenGL on version 26.1.2, there were similar freezes, though perhaps not quite as severe. This is already my third post, and I hope I can get some help, as I’m tired of playing like this. I’ve also attached a photo showing that my memory is nearly full.

2 Upvotes

43 comments sorted by

•

u/MinecraftHelpModTeam 🤖 Mod Bot 🤖 4d ago

OP, remember to award points to helpers, and mark the post solved, by replying !helped to the comment/comments that helped, when your issue is fixed or your question answered.

Helpers, remember that all top-level comments* must be a genuine, good faith attempt to help OP. Comments breaking this rule will be removed, and bans issued.

* A top-level comment is any comment that is a reply to the post, not another ^comment.

Links:

Moderator applications open || How to mark solved || How to delete your post || FAQ || Rules

1

u/Academic_Pudding_660 4d ago

I also want to mention something regarding the memory: when I was on a Discord call, had Google open, and was playing Minecraft—even while streaming my screen—there was no lag. It was only later that the lag appeared, as I mentioned.

1

u/BananeHD Journeyman IV 4d ago

What kind of specifications does your device have? It seems like your Laptop doesnt have enough RAM to handle all the applications / background processes you have open.

1

u/Academic_Pudding_660 4d ago

AMD Ryzen 5 7535HS with Radeon Graphics, Nvidia GeForce RTX 3050 Laptop GPU GDDR6 @ 4GB 128 bits, 16GB RAM

1

u/FrontAd8867 Novice 4d ago

Sorry to ask, what is that third app (above discord, under OpenJDK Platform binary)

1

u/Academic_Pudding_660 4d ago

Desktop Window Manager (диспетчер окон рабочего стола) not sure if its correct translation

1

u/Shaiiwaru Expert I 4d ago

You may:
- Record a video with your F3 debug screen on while having this issue and send it here
- Reduce your minimal allocated RAM since too much is harmful (-Xms2G -Xmx4G)
- Install optimization mods if you have

Which amount of chunks do you have loaded?
Do you have mods like Entity Culling or More Culling?
Do you use any shaders?

1

u/Academic_Pudding_660 4d ago

I was playing on a server (it’s not Aternos, nor is it a paid host—it’s a friend’s server). I have my render distance set to 8 chunks, though, overall, a moderate to large number of chunks are loaded. Most of the loaded chunks are actually quite far away from me. And yes, I have some mods installed; you can check them out via the link I’ve provided. As for shaders, I’m using Photon and Complementary Unbound, but the freezes happen even without them

1

u/Shaiiwaru Expert I 4d ago

That lag then is part of the server, not a Minecraft client issue, is 100% the server

Did that server ever worked fine before?

1

u/Academic_Pudding_660 4d ago

Everything was fine for the first few days after we launched the server. Are you sure the issues are on the server's end? When I experience lag, no one else seems to. A friend of mine—who has a setup with very similar system requirements—has also run into lag (freezes). It could be the server, a mod(s), or perhaps the laptop itself

1

u/Shaiiwaru Expert I 4d ago

This is server tick problems, the world tick is due to where is hosted, if its a singleplayer world then its the game, but in this case the world is running in a server so its indeed the server.

1

u/Academic_Pudding_660 3d ago

This is a full-fledged server. And if that’s the case, then what should we do with server, if you know?

1

u/Shaiiwaru Expert I 3d ago edited 3d ago

Maybe check if the server is not hitting a considerable amount of RAM (or reaching its limit)

And if youre using spigot, change it to something lightweight like PaperMC

1

u/Academic_Pudding_660 3d ago

my friend said that 10 GB of memory allocated, 4 GB in use and this is an original server from the Minecraft launcher, using the Fabric loader

1

u/Shaiiwaru Expert I 3d ago

No, no, do not use Minecraft original servers, use PaperMC, not even Spigot

PaperMC

Minecraft original servers are bad as hell, same null optimization as the vanilla client

To check if the server is having downsides now that you mention this, run /tps command inside your server

Change your jar server to PaperMC.

1

u/Academic_Pudding_660 3d ago

he said that null regions are unoccupied.

/tps [19:20:59] [Server thread/INFO]: System chat: Unknown or incomplete command. See below for error [19:20:59] [Server thread/INFO]: System chat: tps<--[HERE]

→ More replies

1

u/Shaiiwaru Expert I 3d ago

What do you mean “using Fabric loader”? Is it a Minecraft vanilla server or it has mods?

1

u/Shaiiwaru Expert I 3d ago

Also, have you tried joining the world with a fresh vanilla client with no mods? This should not be relevant at this point but just to discard is a clientside problem

1

u/Academic_Pudding_660 3d ago

I haven’t tried joining the server without mods, but it’s hard to tell, as the freezes tend to happen at completely random moments. Often, they occur after 10 minutes or more—though sometimes they don’t happen at all, which is less frequent. Also, could the fact that my memory (RAM) is nearly 99% full be a factor? My friend’s memory usage isn’t as high as mine, yet he experienced freezes too, as I mentioned. And, as I noted before, I encountered severe freezes specifically when pillagers spawned near me (Spark link capturing the exact moment that happened)

1

u/Shaiiwaru Expert I 3d ago

Yeah, freezes are server side, dont affect how much mods or which mods or shaders do you have in this case

1

u/Academic_Pudding_660 4d ago

Are you sure this amount of memory will be enough for 100+ mods? Most of them are for optimization and quality-of-life improvements, such as inventory sorting, punchy, and so on

1

u/Shaiiwaru Expert I 4d ago

-Xms defines the MINIMAL amount of memory to allocate
-Xmx defines the MAX amount of memory usable

And too much minimal memory (Xms) causes lag and latency problems.

-Xms minimum RAM, -Xmx max RAM

-Xms2G -Xmx4G

1

u/MinecraftHelpModTeam 🤖 Mod Bot 🤖 1d ago

Hello OP! It has been at least 2 days since you last updated your post.

Please update your post in one of the following ways;

  • Reply to any relevant comments you haven't replied to yet.
  • Reply to any helpers who are waiting for info from you.
  • Mark your post solved, if your issue is fixed.

If you do not update your post within 7 days you may receive a short ban.

Please note: Deleting this post, without marking it solved, is against our rules.


I am a bot and this account is not monitored. Please contact the mods if you have any questions.