Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-157742

Many files in the development packs folders makes the game extremely slow to launch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.20.20 Preview, 1.19.70.23 Preview, 1.19.60.27 Preview, 1.19.0, 1.19.41, 1.20.1 Hotfix, 1.20.51 Hotfix, 1.21.20, 1.21.30.23 Preview, 1.21.21 Hotfix
    • None
    • Confirmed
    • Windows
    • 1179378

      The bug

      My game takes over 30 seconds to reach the loading screen, and I just recently figured out the cause: packs in the development_behavior_packs and development_resource_packs folders. The more files you have in the pack, the slower launching the game becomes.
      It doesn't even matter if they are legal pack files or not, so it's not parsing or validation that's slow. In fact it doesn't even matter if the folder is a valid pack – removing the manifest file doesn't prevent the stall.
      Note that the normal behavior_packs and resource_packs folders don't appear to have this issue, however using them is not an option for me because closing and reopening Minecraft entirely in order to reload changes is a non-starter.

      How to reproduce

      1. Download the attached behavior pack. It has 66,000 extremely small files in it
      2. Unzip it in the development_behavior_packs folder
      3. Launch the game

      Expected behavior
      It launches in under 2 seconds with a modern PC

      Actual behavior
      You're staring at a gray screen for multiple minutes

        1. 2023-07-04 20-21-41-8MB.mp4
          3.78 MB
        2. image-2024-08-19-18-46-50-861.png
          image-2024-08-19-18-46-50-861.png
          50 kB
        3. image-2024-08-19-18-46-59-909.png
          image-2024-08-19-18-46-59-909.png
          45 kB
        4. image-2024-08-19-18-48-14-072.png
          image-2024-08-19-18-48-14-072.png
          131 kB
        5. Loading Time Graphs.xlsx
          22 kB
        6. pack.zip
          9.35 MB

            tryashtar [Mod] tryashtar
            Votes:
            5 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: