Standard mana spreader bursts traveling through nether portals cause extremely high TPS spikes.
Flyte-less opened this issue ยท 2 comments
Mod Loader
Forge
Minecraft Version
1.20.1
Botania version
1.20.1-450-forge
Modloader version
47.4.8
Modpack info
Most minimal setup possible (Botania, Curios, Patchouli, Spark for generating profile)
The latest.log file
No relevant info in log
Issue description
Mana blaster and pulse mana spreader cause a single red spike as the nether loads in and then remains flat as long as mana continues being sent through the portal, but standard mana spreaders continue to cause lag spikes even after the initial firing.
https://spark.lucko.me/on7oiC6NE7
Steps to reproduce
- Generate a new world and travel for several chunks away from spawn until you are clear of the spawn chunks.
- Build a nether portal and enter it. In the nether place a mana spreader on one side and a mana pool on the opposite. Repeat the same in the nether.
-
Place and destroy a creative mana pool on top of either spreader and ensure that the mana beam is traveling though the portal and returning the same way.
-
Alt+F3 and observe the spikes on the graph.
Other information
king626 on the VM discord suggested that it could be caused by the game loading chunks in the wrong dimension and this seems to be the case. Forceloading the chunks containing the portals but in their opposite respective dimension seems to mitigate this issue entirely.
Fixed via e9cfbe3.
What seems to be happening here is that the teleported burst attempts to look for a mana spreader at its source coordinates, but in the new dimension. This causes chunk loading and unloading at a location in the new dimension that is potentially not even generated yet.
Similar issues may exist with the Bore and Redirective lenses.