mojira.dev
MCPE-221385

Hologram based resource packs like holoprint and structura causing major lag

Issue: Starting with the .82 hotfix, holoprint, which is a resource pack that is created by a website where you upload a structure file to, and it gives you a hologram like version of the structure block in your world, tied to an armorstand to help you build it in your survival world, now drops frames down to under 5fps, when it used to cause little to no performance hit pre-patch. The lag is greater the more blocks used for the structure, and small enough structures may produce no lag. I do not have any sense of scale for what causes no lag, and where the break point is for lag to start

Reproduce: Using a structure block, save the structure of a larger sized build, one that uses at least 3 dozen total stacks of blocks. Upload that file to https://holoprint-mc.github.io/ and follow the instructions to create the resource pack. Once created, install the pack, apply to global resources or the world directly, and place down an armorstand to display the hologram. You will experience lag.

Work Arounds: It has been found that if you place an item in the armorstands hand, and use the control to show 1 layer at a time, the lag will mostly go away, but drops in FPS for a few seconds when changing layers.

Expectation: Prior to the .82 patch there was no noticable FPS drop on my PC from using a single holoprint, regardless of it’s size. FPS drop only occurred with multiple armorstands displaying holograms all at once.

I have attached a holoprint for dev use.

Linked issues

Attachments

Comments 14

I have experienced this issue as well. Prior to 1.21.82, no lag. After .82, tons of lag. Local worlds and servers.

Ive been having trouble with the lag from it over all, but I'm experiencing it the worst around redstone builds. If I’m within render distance of my auto storage system or and auto farms, the lag almost crashes the game depending on how big the hologram is.

HoloPrint dev here. This issue causes unplayable lag when rendering large geometries on armor stands and most likely all other entities, unless they are holding an item or wearing a piece of armor in which case performance is fine. Taking away the item/armor makes the lag return.
It was fine in 1.21.81 and 1.21.80.28-preview, but laggy in 1.21.82 and 1.21.90.20-preview onwards.

I tested putting the geometry on another entity (axolotl) and I experienced the same lag. Looking away from the axolotl (derendering the huge geometry) caused performance to return back to normal; however, HoloPrint uses "should_update_bones_and_effects_offscreen": true so it lags regardless of where the camera is looking in this case.

Still an issue in 1.21.100.20-preview.

This has now gotten worse with 1.21.92 so the game slows to about 1 frame every 10 seconds with armor stand lag, even with the item frame holding an item where it worked ok in 1.21.90. This should be testable in the same way as already documented

4 more comments

This has helped me learn to build better and understand how stuff works as I build

This issue stems from having too many bones in a single geometry.

HoloPrint v1.2.2 solves this issue by putting all cubes into a single bone.

When does v.1.2.2 go live?

Prowl8413

(Unassigned)

1429714

Community Consensus

Windows

Windows 11

1.21.82 Hotfix

Retrieved