Skip to content

Android: Loading assets from PCK is x8-10 slower than from APK #109635

@h1v9

Description

@h1v9

Tested versions

  • Reproducible on 4.5beta5

System information

Pixel 9A - Android 15

Issue description

As the title says loading assets from PCK files is almost 10 times slower than loading directly from the APK.
On the same export of the example platformer project splitting the assets into a PCK slows down loading time from:
loading time: 0.216000 secs
to:
loading time: 1.760000 secs

On a different project from the attached MRP it can take up to 8 seconds to load a single model from a PCK.
I don't know if this is expected, seems excessively slow to me.
Not sure if this is related to #102998

Steps to reproduce

  • Export the assets in a PCK (making sure not to include them in the APK)
  • Load the PCK with ProjectSettings.load_resource_pack
  • Play

Minimal reproduction project (MRP)

The attached project is already setup with the 3 necessary export profiles and a script to load the PCK from /storage/emulated/0/platformer.pck.
You might have to restart the game after granting permissions for it to work
platformer_slow_pck.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Up for grabs

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions