Concurrent Chunk Management Engine (Fabric)

Concurrent Chunk Management Engine (Fabric)

231k Downloads

Severe Performance Degradation with Multiple Dimensions

FlareZ123 opened this issue ยท 6 comments

commented

Describe the bug
If a world is given around ~1K new dimensions via a datapack, regardless of whether or not they are loaded, the performance of C2ME is severely degraded.

To Reproduce
Steps to reproduce the behavior:

  1. Make a datapack, populate data/dimensions/... with ~3K files of separate dimensions, can just be clones of the end dimension, and add it to a new world.
  2. Load into a new world with this datapack active, and use C2ME. Chunk loading will be significantly slower than if you create another world without the datapack.

Expected behavior
Unloaded dimensions shouldn't affect the performance of the main C2ME thread(s).

Runtime info (please complete the following information):

  • OS: Windows 11
  • Minecraft version: 1.20.1
  • Mod version: 0.2.0+alpha.11.10+1.20.1

Crash reports / logs
n/a

Other mods
none

Checklist

  • I am using the official version of the mod.
  • I tried the latest development version but the issue persists.
  • I searched for similar open issues and could not find an existing bug report on this.

Additional context
You don't need to go to the other dimensions to actually have the performance degraded, just having them unloaded nukes the performance for some reason.

commented

Try reproduce without C2ME.

commented

It's not reproducible without C2ME, as if I run the same world without C2ME, the chunk generation becomes normal speed again.

commented

Please provide the datapack you used to reproduce this issue.

commented

dim-base-datapack.zip
This is the datapack I am using, except I removed all the dimensions except 1. d1.json (bc it was too big) you can simply clone the d1 file into d2, d3, etc. with a bash script, and you can reproduce the behavior. (edit: clone at least 3k times)

commented

I think this works now! I'd call this fixed.