Posted February 12, 20196 yr 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
February 12, 20196 yr Where/when are you generating your structure? Ideally you would do it before lighting was calculated About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.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)
February 13, 20196 yr Author Hi! I'm generating it from a WorldGenerator class, so I'm assuming it's after lighting calculations. My only problem is I'm not sure how to move it to before.
February 15, 20196 yr Show your code preferably post it as a GitHub repository About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.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)
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.