Jump to content

[1.12.2] Templates causing lag


MajikalExplosions

Recommended Posts

Hi!  I'm back.  This time it's because of lag again.  The game is playable, but really slow.  What I'm doing right now is loading templates from .nbt files and then placing them in the world from a worldgenerator.  The only problem is that doing so makes world generation around 10 times slower than vanilla Minecraft.  My structures are basically houses (they have roofs, glass, doors, and all that).  I spawn one house per chunk, which means there are a *lot* of houses and I'm guessing that this is what causes the lag.  I have already experimented with this for hours and what I have found (I think) is that having lighting sources slow down world generation.  When I remove my sea lanterns, world generation speeds up to around 50-75% of vanilla terrain generation.  However, it's still really laggy in-game and the game has to consistently skip ticks in order to catch up.  I'm guessing that this in-game lag (and previously world generation before I removed the sea lanterns) is because of the lighting recalculations.  Every time I add a template, the game has to recalculate lighting for that chunk (and possibly other chunks as well) because of the roof and "underground areas" underneath them.  I have attached a debug profile from without the sea lanterns.  I would like to have the sea lanterns back and without lag.  I'm okay with removing the skylight if necessary as long as the lag goes away, but I'm not sure how to do that (if I even need to).  Let me know if you need any more information.  Thanks!

profile-results-2019-02-11_09.03.51.txt

Link to comment
Share on other sites

Where/when are you generating your structure? Ideally you would do it before lighting was calculated

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

Show your code preferably post it as a GitHub repository 

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

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



×
×
  • Create New...

Important Information

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