Started by
Rebuilt
on
Topic category: Help with Minecraft modding (Java Edition)
So I'm testing my mod on my unmodified java launcher and I find out my game lags when I have my mod that I made in Mcreator installed. I make a copy and start testing by removing the new content I added a while ago. I know it has something to do with the current version of the mod because I have an archived version just before that works fine. I remove all of the stuff I recently added and it still lags. However, this is weird because it only lags when;
- My Mcreator mod is installed
- You are in first person
- The game is fullscreen
And the mod has no custom rendering.
Edited by Rebuilt on Tue, 11/11/2025 - 01:24
Maybe it is one of these problems: https://mcreator.net/wiki/how-make-high-performance-minecraft-mods
The only problem is that I copied the entire project, deleted everything I had recently added up until my current archived (working) build and it still lagged. However. I am thinking that since I am using forge separate transforms for three items (this gives it 32x in mainhand 16x in inventory/other). Maybe this is the source of the lag?
I wouldn't say so
I think I may know what happened actually. It may be a plugin I used because it was meant to add custom player animations. It never worked but I think it still was loaded into the workspace. Nerdys player animator plugin. Is there a way to specifically hunt down and remove content added by a plugin?
The unfortunate thing is, with further testing, its an internal issue with the actual workspace itself and not a content/feature thing :/
Never mind everything! I found the issue. It was a constant trigger being fired. This was formed by a potion that I made that replaces the texture of the GUI with a custom texture. However, it is not optimized so whenever you do not have the effect outside of the test environment, it lags like crazy!
https://mcreator.net/wiki/how-make-high-performance-minecraft-mods mentions avoiding calling things too often.
You can also use debugger to count how many times something is called: https://mcreator.net/wiki/how-use-debugger