mojira.dev
MCPE-126439

Commands and UI Are Delayed With Larger Add-Ons

When using behaviour packs with lots of files (more noticeable with more files). When attempting to run commands / open the command UI, there is a significant delay for each instance:

  • Opening the command UI with /

  • Running commands as a player

  • Running commands from command blocks

  • Running commands from entities

  • Running commands from custom blocks

  • Running commands from custom items

After the command is run, there will no longer be a delay for the rest of that session. After reloading each delay will have to be re run. Which can lead to lag and or errors.

 

Steps To Reproduce:

  1. Install the supplied add-on and load a world with it

  2. Attempt to run a command

    1. Observe a delay when opening the command UI with '/' as opposed to just opening the chat UI

    2. Observe several delays when running commands from blocks, items, entities, etc.

Expected Results:

  • Commands are instanced when loading the world rather than there being significant delays when attempting to run commands.

Actual Results:

  • There are several delays when using commands and the command UI when using add ones with large behaviour packs

Attachments

Comments 2

Additional info needed; what exact addon have you used when the issue occured. Could you please upload this addon to verify if it occurs on the exact same addon. We have tested if the issue occurs with our custom addons and it seems to not be present with it.
his ticket will automatically reopen when you reply.

The attached pack is part of a bigger pack that essentially allows players to put 5 items into a pot and will give an item to the player based on what they put in. As there's no item permutations at the moment, it requires a lot of files, currently in the pack there is about 17,000 items.

Again, once the commands have been used once, there won't be a delay again for the rest of the session. If the commands could be instanced during the loading of the world rather than when they are used, that could be a potential fix, I'd rather longer load times than having to freeze the world for a while to use commands from players, blocks, entities, etc.

Gruntastic

(Unassigned)

609950

Confirmed

Multiple

add-on, commands, delay, ui

1.18.10.27 Beta, 1.18.10.26 Beta, 1.18.0.24 Beta, 1.18.0.22 Beta, 1.18.0.20 Beta, ..., 1.18.30.33 Preview, 1.18.12 Hotfix, 1.19.20.24 Preview, 1.19.11 Hotfix, 1.19.63

Retrieved