TeamJM / journeymap

JourneyMap mod for Minecraft
http://journeymap.info
123 stars 10 forks source link

[Bug 1.21]: Always a small lag spike when entering a new / existing world or going through to another dimension. #744

Closed Gbergz closed 2 days ago

Gbergz commented 4 days ago

What happened?

Everytime you enter a new / existing world, or going to another dimension like The Nether there's a small lag spike that occurs. Depending on PC specs the spike probably lasts longer.

The lag spike exists even with just NeoForge installed + Journeymap although smaller definitely noticable. Going to a modpack though the lagspike is more noticable and can last 1-2s depending on pc specs.

Logs latest.log and journeymap.log pasted at the bottom.

Here's a spark client report from a modpack: https://spark.lucko.me/Cje67yvoXv

Here's a spark report with just NeoForge and Journey Map: https://spark.lucko.me/nve7n2fTdB

Mod Loader

NeoForge

Minecraft Version

1.21.x

Version

6.0.0

Relevant log output

Latest.log: https://gist.githubusercontent.com/Gbergz/e98e1b8fc4568d5c2f8a4d65434f6958/raw/74cf1c0f5ea435894293333de3c6774cf659767c/gistfile1.txt

journeymap.log: https://gist.githubusercontent.com/Gbergz/bb53ee689f9d30a1f65239d75f18ffc2/raw/5e15a2c77af83172533bb356dea93ce302b76e68/gistfile1.txt

mysticdrew commented 4 days ago

I don't see anything in the spark that would indicate an issue with journeymap.

Have you tested with complete vanilla, and another test with only neoforge and no mods?

Keep in mind, when loading a world like joining a new world or dimension, minecraft has to load all the chunks in render range into memory. It takes a bit of time to do that.

mysticdrew commented 4 days ago

I do see some colorpalette methods that are probably a bit heavier than they should be

Gbergz commented 4 days ago

I don't see anything in the spark that would indicate an issue with journeymap. Have you tested with complete vanilla, and another test with only neoforge and no mods? Keep in mind, when loading a world like joining a new world or dimension, minecraft has to load all the chunks in render range into memory. It takes a bit of time to do that.

Yes, tested just vanilla, and just neoforge no JMap, no lag spike anymore.

Removing the mod from modpack resolves the lag spike too.

mysticdrew commented 4 days ago

I see this. Probably the issue. Loading the colorpalette colors. image Probably the issue

Gbergz commented 4 days ago

Looks like it, yeah. Probably it

mysticdrew commented 4 days ago

I don't really notice it on my PC, can you come into our discord and we can get some test versions for you?

Gbergz commented 4 days ago

Sure I am already a member on there

mysticdrew commented 4 days ago

Make a support thread please, I'll help out when I get home, or meme will.

Gbergz commented 4 days ago

Gotcha, I opened one.

mysticdrew commented 2 days ago

This is mostly fixed for beta.14, we still have a few more issues to resolve before it gets released.

There will always be an initial 500ms or so pause when mapping starts the first login as all the block colors need to be loaded into memory for mapping. I tried adding more threading but that was causing a whole bunch of issues.

Gbergz commented 2 days ago

Awesome, thanks. No worries!

mysticdrew commented 2 days ago

1.21-6.0.0-beta.14 is publishing, should be available shortly