lag when building multi-block structures
adelayde opened this issue · 8 comments
When building the thermal evap tower or boiler, for instance, the game experiences lag proportional to the size of the structure when placing/destroying blocks nearby, reaching hundreds of millis per update for full-sized structures.
This makes building anywhere near the structure very painful.
I've noticed the area experiencing update lag extends out to a certain range into the world, beyond which blocks can be placed lag free. A 5x5 test boiler in a new flatworld requires me to stay 12 blocks away in order to avoid block placement lag. Maybe that depends on chunk boundaries or other particulars... not sure.
I assume it's the multi-block is doing validity testing? I wonder if it could employ an incremental test that spans ticks to avoid single-tick lag? Obviously speaking from ignorance here...
Spent some time instrumenting, and It doesn't appear to be related to update processing of the multiblock... all the tick-related update paths around that area are consistently taking on the order of a milli or less, even when the game freezes for 300-500 millis or so when placing or destroying a block in the vicinity of a multiblock.
It definitely occurs with Minecraft 1.10.2 + forge 12.18.1.2014 + master Mekanism and no other mods (well... + MCMultiPart).
The fact that it follows chunk boundaries so well suggests some sort of interplay between your multiblocks and Minecraft chunk processing, but I just don't know the intrastructure well enough for that to mean anything to me.
Maybe this is already a known issue?
F3 shows gameRenderer.level.terrain_setup.rebuildNear spiking rapidly when I start spamming blocks in the same chunk as a multiblock.
Ditto for any other chunk, but to nowhere near the same degree.
Mapped out the laggy region of a turbine... it's 18x18. So not chunks, but not-so-coincidentally the max multiblock size?
It appears to be in the CTM engine. There's a CTMRenderer config flag, but it seems it no longer has any effect? Looks like non-CTM code was ripped out in May.
FWIW I have the exact same issue. Glad it isn't just me. If I move away from my Mekanism stuff, block placement returns to normal speed. Seems to get worse with larger multis. In my case a 18 height solar evap but I've seen it with max size turbines too in creative.
Woo hoo!!
On Aug 5, 2016, at 3:46 PM, Aidan [email protected] wrote:
Fixed in development!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.