Jump to content

Recommended Posts

Posted

I usually cap my fps at 60 and it should be working fine but now I am getting 0-20 fps all of a sudden with occasional spikes (0 fps) every time I load chunks (did not happen before), this didn't happen until like 2 days ago, keep in mind I did change some registry settings in systemprofile but I have now set them to default

 

Log 

https://pastebin.com/RE1t7tnC

 

Mods

mods.PNG.519c844849f86945a52982402c31fddc.PNG

 

JVM Arguments

Old -XX:+UseG1GC -Xmx8G -Xms8G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

(fps seemed fine when I used this before so I thought removing it would help)

 

New : -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

(still the same 0-20 fps)

 

-This only happens with forge/modded mc

-Fine in vanilla/optifine

-These are the same mods and forge I have been using for the past week without any issues

 

 

Posted (edited)

tried downgrading forge to 2833 (cause its the lowest required for the mods i used) still the same low fps problem, vanilla still works great

 

tried running without mods, high fps but the same stuttering 

 

updated java to 231, sort of worked, but still not what i usually get, flatworlds perform better than default but vanilla still has the better frames and as i said even without mods it still has stuttery frames

 

seems to only happen with mods but i dont understand what couldve gone wrong because they worked fine a couple days ago

Edited by jamesrei
Posted (edited)

Modded Minecraft has suddenly been running slow ☹️ , its good on a flat world but stutters and spikes a lot in default worlds 

 

I have fixed a problem sort of like this 2 times and to fix it ive :

-Removed a cave mod

-Reinstalled Minecraft

 

- I don't know what other mod could be causing this since the mods I used are what I have been using for the past few weeks without much trouble

- Reinstalled about 2-3 times today, no avail

- Reinstalled all the mods cause I though they were corrupted but still no improvement

 

F3 screenshot(s) on a modded world

2019-11-09_10_45_32.png.ab402031ca1dd5f2370355dc95dcb39c.png

2019-11-09_10_50_08.png.52bcff97ea60ec99878e1598d043153f.png

 

F3 screen on multiplayer ( Hypixel )

2019-11-09_10_53_29.png.0b0db1307a644bc279cd73a71616e701.png

 

F3 screen on vanilla/optifine default world

2019-11-09_11_04_55.png.9a17aec23c2195e7ed2030c7aa726426.png

 

Task Manager

help.PNG.7cc09f849719cecf03d43fdda3e9c183.PNG

( when I start task manager javaw.exe CPU is around %2-20 and it goes higher but not above %60 when its opened)

 

-whats in my mods folder

modsfolder.PNG.ac068f3e81934b84577667ba00f239f0.PNG

 

When starting a world it looks like this (flat)

2019-11-09_10_46_42.png.6c6283d8be07b5c31615995fddb7bd69.png

 

Forge Version

1.12.2 - 14.23.5.2847

 

JVM Arguments

Current -Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

Old : -XX:+UseG1GC -Xmx8G -Xms8G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

 

What I have tried

-Downgrading Forge

-Downgrading Optifine

-Updated Drivers

-Downgraded to stable drivers

-Defrag 

-Uninstalling and Reinstalling Minecraft 

-Updated Java

-Played mc windowed (even smaller resolution than what i usually played with stable fps)

-Set force threaded chunk rendering to true

-Set force threaded chunk rendering to false

 

Things to keep in mind

- I did change some registry settings but I have since reset them to default I believe 

(im only skeptical about systemresponsiveness since it is currently set to 14)

- Happens with and without shaders

- Flat Worlds run far better

- Didnt happen a week ago

- A lot of my settings are on low

- I am using the same mods that I have used in the past without error even less mods actually

 

On multiplayer servers, while I am getting higher frames and stability, I do get server lag which also didn't happen, people are stuttery and when I click on things theres about a second or two delay

 

Tell me if I have missed information

any help is appreciated to get my minecraft back to normal ☺️

 

edit ; log for the modded screenshots 

https://pastebin.com/ztVKCShc

 

 

 

 

 

 

 

 

2019-11-09_10.46.42.png

Edited by jamesrei

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

    • You probably used jd-gui to open it, didn't you? Nothing wrong with that, I also made that mistake, except that Notch was a smart guy and he obfuscated the code. That's why you only see files called "a", "b", "c" and then a file that combines them all. As I said, use RetroMCP to deobfuscate the code so that you will 100% understand it and be able to navigate it.
    • Decompiling minecraft indev, infdev, alpha, beta or whichever legacy version is really easy. I'm not a plug, I just also got interested in modding legacy versions (Infdev to be specific). Use https://github.com/MCPHackers/RetroMCP-Java Once you install their client and the Zulu Architecture that they say they recommend (or use your own Java). I encountered some problems, so I run it with: "java -jar RetroMCP-Java-CLI.jar". You should run it in a seperate folder (not in downloads), otherwise the files and folders will go all over the place. How to use RetroMCP: Type setup (every time you want change version), copy-paste the version number from their list (they support indev), write "decompile" and done! The code will now be deobfuscated and filenames will be normal, instead of "a", "b" and "c"! Hope I helped you, but I don't expect you to reply, as this discussion is 9 years old! What a piece of history!  
    • I know that this may be a basic question, but I am very new to modding. I am trying to have it so that I can create modified Vanilla loot tables that use a custom enchantment as a condition (i.e. enchantment present = item). However, I am having trouble trying to implement this; the LootItemRandomChanceWithEnchantedBonusCondition constructor needs a Holder<Enchantment> and I am unable to use the getOrThrow() method on the custom enchantment declared in my mod's enchantments class. Here is what I have so far in the GLM:   protected void start(HolderLookup.Provider registries) { HolderLookup.RegistryLookup<Enchantment> registrylookup = registries.lookupOrThrow(Registries.ENCHANTMENT); LootItemRandomChanceWithEnchantedBonusCondition lootItemRandomChanceWithEnchantedBonusCondition = new LootItemRandomChanceWithEnchantedBonusCondition(0.0f, LevelBasedValue.perLevel(0.07f), registrylookup.getOrThrow(*enchantment here*)); this.add("nebu_from_deepslate", new AddItemModifier(new LootItemCondition[]{ LootItemBlockStatePropertyCondition.hasBlockStateProperties(Blocks.DEEPSLATE).build(), LootItemRandomChanceCondition.randomChance(0.25f).build(), lootItemRandomChanceWithEnchantedBonusCondition }, OrichalcumItems.NEBU.get())); }   Inserting Enchantments.[vanilla enchantment here] actually works but trying to declare an enchantment from my custom enchantments class as [mod enchantment class].[custom enchantment] does not work even though they are both a ResourceKey and are registered in Registries.ENCHANTMENT. Basically, how would I go about making it so that a custom enchantment declared as a ResourceKey<Enchantment> of value ResourceKey.create(Registries.ENCHANTMENT, ResourceLocation.fromNamespaceAndPath([modid], [name])), declared in a seperate enchantments class, can be used in the LootItemRandomChanceWithEnchantedBonusCondition constructor as a Holder? I can't use getOrThrow() because there is no level or block entity/entity in the start() method and it is running as datagen. It's driving me nuts.
    • Hi here is an update. I was able to fix the code so my mod does not crash Minecraft. Please understand that I am new to modding but I honestly am having a hard time understanding how anyone can get this to work without having extensive programming and debugging experience as well as searching across the Internet, multiple gen AI bots (claude, grok, openai), and examining source code hidden in the gradle directory and in various github repositories. I guess I am wrong because clearly there are thousands of mods so maybe I am just a newbie. Ok, rant over, here is a step by step summary so others can save the 3 days it took me to figure this out.   1. First, I am using forge 54.1.0 and Minecraft 1.21.4 2. I am creating a mod to add a shotgun to Minecraft 3. After creating the mod and compiling it, I installed the .jar file to the proper directory in Minecraft and used 1.21.4-forge-54.1.0 4. The mod immediately crashed with the error: Caused by: java.lang.NullPointerException: Item id not set 5. Using the stack trace, I determined that the Exception was being thrown from the net.minecraft.world.item.Item.Properties class 6. It seems that there are no javadocs for this class, so I used IntelliJ which was able to provide a decompiled version of the class, which I then examined to see the source of the error. Side question: Are there javadocs? 7. This method, specifically, was the culprit: protected String effectiveDescriptionId() {      return this.descriptionId.get(Objects.requireNonNull(this.id, "Item id not set"));  } 8. Now my quest was to determine how to set this.id. Looking at the same source file, I determined there was another method:  public Item.Properties setId(ResourceKey<Item> pId) {             this.id = pId;             return this;   } 9. So now, I need to figure out how to call setId(). This required working backwards a bit. Starting from the constructor, I stubbed out the variable p which is of type Item.Properties public static final RegistryObject<Item> SHOTGUN = ITEMS.register("shotgun", () -> new ShotgunItem(p)); Rather than putting this all on one line, I split it up for readability like this: private static final Item.Properties p = new Item.Properties().useItemDescriptionPrefix().setId(rk); Here is was the missing function, setId(), which takes a type of ResourceKey<Item>. My next problem is that due to the apparent lack of documentation (I tried searching the docs on this site) I could not determine the full import path to ResourceKey. I did some random searching on the Internet and stumbled across a Github repository which gave two clues: import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; Then I created the rk variable like this: private static ResourceKey<Item> rk = ResourceKey.create(Registries.ITEM, ResourceLocation.parse("modid:shotgunmod")); And now putting it all together in order: private static ResourceKey<Item> rk = ResourceKey.create(Registries.ITEM, ResourceLocation.parse("modid:shotgunmod")); private static final Item.Properties p = new Item.Properties().useItemDescriptionPrefix().setId(rk); public static final RegistryObject<Item> SHOTGUN = ITEMS.register("shotgun", () -> new ShotgunItem(p)); This compiled and the mod no longer crashes. I still have more to do on it, but hopefully this will save someone hours. I welcome any feedback and if I missed some obvious modding resource or tutorial that has this information. If not, I might suggest we add it somewhere for people trying to write a mod that doesn't crash. Thank you !!!  
  • Topics

×
×
  • Create New...

Important Information

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