Jump to content

1.11.2 Forge Help needed. freezing, hitching, fps drops...


Recommended Posts

Posted (edited)

Hello,

I could really use some help trying to figure this issue out.

 

I play on an online multiplayer minecraft server. Lately I've been experiencing terrible freezing or lag issues. No one else on the server seems to have this issue.

What I've noticed is that its a periodic issue. When it starts, it happens on more regularly. But i can also duplicate it when running through the same area or spots that it happens in. (I've used these areas to do my own testing). I encounter fps drop when this occurs. It could be 60 to 0 or 600 to 0, its just a sudden fps drop and the game lags for a good 2 or 3 minutes solid.

 

Things I've done so far:

- allocated more or less ram to the profile

- set minecraft/java to run as a priority on the PC

- updated GPU drivers

- Updated windows

- Updated java

- Updated Forge

- Updated Optifine

- Reinstall Minecraft

- Reinstall java

- Reinstall Forge

- Tried using a loader called Magic Loader which supposedly helps forge performance issues

- Tried not running shaders

- Tried lower resolution or no texture packs

- Closing all other programs and only running minecraft.

 

These things seemed to help a bit but not for long or at all. I'm still experiencing the same issues.

 

The last thing I tried was just running a profile not utilizing Forge. I ended up running a profile that just had optifine and another with nothing at all (complete vanilla). Without Forge, my game was running amazingly, the lag, hitching and freezing were all gone! So I believe I've isolated the issue further. But now I cant use mods or course. I haven't seen this before and this is something recent that started happening. I thought this was perhaps server related at first but other players using forge dont appear to have this issue. Plus when I removed forge, my issue were gone on the server as well.

 

My system specs are:

- i7-7700k Intel @4.2GHz

- Asus Maximus IX Code motherboard

- 32GB of G.Skill TridentZ DDR4 3200 ram

- 2TB Western Digital HDD

- 250GB Samsung SSD EVO

- 250GB Samsung SSD PRO

- Gigabyte GeForce GTX 1080 Ti Gaming OC 11G

 

If you want to see an example of the lag, here one of my vids where its very apparent:

 

Edited by Glitched
gammer correction
Posted
5 hours ago, diesieben07 said:

Lag spikes like this can occur if your Java is configured wrongly (too much RAM, wrong GC settings). Please post the FML log and the JVM arguments from the launcher.

And don't use Magic Launcher.

Yeah i was only testing Magic Loader, didn't work so I'm definitely not going to use it.

I've attached the latest FML log and this is my current JVM arguments

-Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M

fml-client-latest.log

Posted
2 minutes ago, diesieben07 said:

Does this happen with just Forge? 

seems so, i haven't noticed it at all in a plain vanilla profile or with a profile using optifine

Posted

So after more extensive testing... I found that none of the mods were causing this issue, it was definitely Forge. I ended installing an older version that was currently being recommend on the site. So I went from Forge 2512 back down to Forge 2386. Immediately I noticed a huge improvement. The game loaded much faster and SO FAR I have not experienced the freeze issue. Lets hope is stays that way. I'm not sure why the newer versions of Forge would have been causing this issue.

Posted (edited)

So after a few hours of playing, There's still a bit of a hitch, but nothing like before. I'm pretty sure if something within Forge but at least now its more playable.

Edited by Glitched
Posted

I'm not able to reproduce this in any way.

If you say it is a specific build of Forge then can you try isolating which build? As 126 builds is a bit to sift through when you can't reproduce it.

It also doesn't help it seems you picked a arbitrary build top jump back to, why did you jump from 1.12.2 to 1.12.0?

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
3 hours ago, LexManos said:

I'm not able to reproduce this in any way.

If you say it is a specific build of Forge then can you try isolating which build? As 126 builds is a bit to sift through when you can't reproduce it.

It also doesn't help it seems you picked a arbitrary build top jump back to, why did you jump from 1.12.2 to 1.12.0?

Not sure where you’re getting 1.12 from. The title of this post says 1.11.2, also as mentioned above, I was using forge 2512 and went down to forge 2386 (all found on the forge site for minecraft version 1.11.2) as it was the current recommended version on the site this morning.

Posted
6 minutes ago, Glitched said:

Not sure where you’re getting 1.12 from. The title of this post says 1.11.2, also as mentioned above, I was using forge 2512 and went down to forge 2386 (all found on the forge site for minecraft version 1.11.2) as it was the current recommended version on the site this morning.

14.23.0.2512 Is 1.12.2

13.20.1.2386 is 1.11.2

I'm not sure where you're getting 2512 being 1.11... {Also yes my original reply was me misreading the version list} So ya... you're not only jumping 100+ versions you're jumping a MAJOR Minecraft version....

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
3 hours ago, LexManos said:

14.23.0.2512 Is 1.12.2

13.20.1.2386 is 1.11.2

I'm not sure where you're getting 2512 being 1.11... {Also yes my original reply was me misreading the version list} So ya... you're not only jumping 100+ versions you're jumping a MAJOR Minecraft version....

 

My mistake, i just checked and I meant 2513. That’s what I was running. As far as the 2386, this is what is being the recommended version front and center on the page for 1.11.2.  Regardless it still worked better than 2513. Any ideas?

434A95FE-75C2-4FD7-A086-CE3D185A0EB8.jpeg

Posted

Yes numbers actually mean things. Now there is only 18 builds involved. Tho nothing is jumping out at me in the changelog that would do anything. There are a couple things that should IMPROVE performance. Again can't reproduce on my end so it'd be up to you to narrow it down to a specific build so we can possibly fix it.Also, you should check your allocated RAM, hit F3 and watch it. If it's constantly going 90% and then freezing/dropping then its your GC thats having issues. Tho again, nothing on our end *should* cause it.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
3 hours ago, LexManos said:

Yes numbers actually mean things. Now there is only 18 builds involved. Tho nothing is jumping out at me in the changelog that would do anything. There are a couple things that should IMPROVE performance. Again can't reproduce on my end so it'd be up to you to narrow it down to a specific build so we can possibly fix it.Also, you should check your allocated RAM, hit F3 and watch it. If it's constantly going 90% and then freezing/dropping then its your GC thats having issues. Tho again, nothing on our end *should* cause it.

This was a frequent issue on 2513. I tested the ram anywhere from 1GB to 16GB and everything in between. I’ll have to retest but I’m positive the % never reach 90% on any allocation from what I remember seeing, however it would still freeze and drop periodically. So far I’m not experiencing this on 2386 aside from some minor frequent hitching. I’m running a gigabyte 1080 Ti https://m.newegg.com/products/N82E16814125955

i don’t seem to have any issues running anything else in ultra settings. Is there any way or tools to test the GC further? 

Posted

Sorry, by GC I mean Garbage Collector, not Graphics Card. 

Sadly Minecraft is one of the games where the GFX card means rather little to the performance. It's fundamentally written poorly and doesn't utilize the GFX card as well as it should.

If you can grab a video with the debug stuff turned on it might be helpful.

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted (edited)
11 hours ago, LexManos said:

Sorry, by GC I mean Garbage Collector, not Graphics Card. 

Sadly Minecraft is one of the games where the GFX card means rather little to the performance. It's fundamentally written poorly and doesn't utilize the GFX card as well as it should.

If you can grab a video with the debug stuff turned on it might be helpful.

 

So here's a clip using Forge 2513. This is an area I was able to consistently reproduce the issue all the time. I'm currently having 8GB of ram allocated as shown and I know this much is really not needed but I have tried this with 1GB to 4GB of allocated ram too and the results were the same. The amount of freezing isn't too long as previously encountered but its still occurring and the fps does dip.

 

I also saw that there's a newer version available of Forge: 2530. I went ahead and installed it. this version appears to be performing much better so far. I played about 3 hours on 2530 tonight and haven't noticed any issues. But im curious as to what might have been causing the freezing with 2513 in case its something i could prevent on my end in the future.

 

 

Edited by Glitched
Posted

Interesting, So it's not a obvious GC overhead. I would then have to start isolating the other mods you have installed. Your debug list shows 16 mods installed. 3 are Forge, 1 is Optifine {which may explain it, would need testing} and that leaves 12 others that are doing unknown things.
Upload your world and your modpack somewhere and we can take a look. But as I say with just Forge I can't reproduce any of this. So its something with your setup, 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
9 hours ago, LexManos said:

Interesting, So it's not a obvious GC overhead. I would then have to start isolating the other mods you have installed. Your debug list shows 16 mods installed. 3 are Forge, 1 is Optifine {which may explain it, would need testing} and that leaves 12 others that are doing unknown things.
Upload your world and your modpack somewhere and we can take a look. But as I say with just Forge I can't reproduce any of this. So its something with your setup, 

I don't think the moderators would currently give out a copy of this world at the moment, its not mine, it belongs to another you-tuber known as gophersvids.

 

So I just ran another test, and i seem to now also be getting the same issue on 2530 after a 4 hour game session... (I'm confused now as this wasn't happening at all yesterday). I then removed all my mods and it was much better despite a slight noticeable hitch from time to time, otherwise its fine.

 

I'm attaching an image of just Forge no mods so you can see the mods installed with only forge. I'm also attaching another screenshot of my mod list as it keeps failing with i attempt to attach a zip of the folder or mods individually. At this point I would agree that it may be a specific mod. I tried testing for this last time and didn't seem to find anything as last time without mods on Forge 2513, I was still getting the same freeze issue. I guess Ill go back to looking at the mods on Forge 2530 now and going from there. Hopefully this new information would help though. Any ideas or stand out to you? I'm a bit lost with this at this point.

 

Here's a comparison of Forge 5230 with and without mods. This time with 4GB of ram allocated.

 

 

Just Forge no mods.jpg

modpack.jpg

Posted

Honestly, I'd blame anything that claims to give better performance, Esp considering your video shows it being fairly smooth the only hitch I saw was walking behind the 'chairs' and that could simply be a small desync between you and the server as you walked through the block with the door that you were using for the back of the chair.

 

I'd say avoid betterFPS/Optifine. Optifine only works well for specific users, and only on specific version of Forge/hardware configurations.

 

And yes we dont allow uploading of arbitarary files to our servers, but there are plenty of free file hosts out there. Just for future reference, I recommend DropBox or Google Drive.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
On 11/6/2017 at 10:53 PM, LexManos said:

Honestly, I'd blame anything that claims to give better performance, Esp considering your video shows it being fairly smooth the only hitch I saw was walking behind the 'chairs' and that could simply be a small desync between you and the server as you walked through the block with the door that you were using for the back of the chair.

 

I'd say avoid betterFPS/Optifine. Optifine only works well for specific users, and only on specific version of Forge/hardware configurations.

 

And yes we dont allow uploading of arbitarary files to our servers, but there are plenty of free file hosts out there. Just for future reference, I recommend DropBox or Google Drive.

Well I think I can rule out betterFPS and Optifine. After removing both, I still seemed to have the freezing issue. I rather like optifine though as it lets me use shaders so hopefully its not part of the problem. I dont think ill be using betterFPS any longer though, honestly i dont notice a difference with or without it. It wasn't until i removed all the mods again and ran forge only that it seemed to clear up. I guess I'll keep removing the other mods one by one to hopefully find the culprit.

  • 2 weeks later...
Posted

I think I’ve narrowed it down to a mod called mo bends. Been playing a few days now and no issues. It a shame though, this mod is pretty entertaining to play with as it adds extra motion and animation to players and mobs.  But how it ended up affecting performance is not worth it. It’s still strange how it initially started and would behave in the earlier stages of testing but I guess what matters is that things are good now. Thanks for your help. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
    • Do you use features of inventory profiles next (ipnext) or is there a change without it?
    • Remove rubidium - you are already using embeddium, which is a fork of rubidium
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.