Hello developers,
To improve the engine compatibility and performance on certain Android devices (for example terminals with ARM64 architecture), we recently implemented support for the Android 16KB memory page size feature. The related code changes are ready — we hereby invite you to integrate and test them to help ensure stability and reliability of this update.
Core contents of this update
- Engine core repository (
engine)
- Contents: Key code changes that add support for Android 16KB page size.
- Status: Submitted as PR #18910 and awaiting merge and tests.
- External dependency repository (
external)
- Contents: Mainly upgrades V8 version (11.8 → 12.7.140) to match the new feature. See PR #499.
Alternative: avoid package size increase from V8 upgrade
If you prefer not to upgrade V8 (for example to control package size), we provide alternatives:
- Engine code changes: manually apply the code changes referenced in the
enginePR #18999 to your engine version. - external V8 libraries: update V8 libs (including x64 and arm64) from the provided PR #501.
Key testing areas and requested feedback
Please test the following scenarios and report any issues:
- Core regression testing: verify basic engine functionalities on ARM64 Android devices (especially devices using 16KB page size).
- Compatibility: check for any project compatibility issues before and after the V8 upgrade.
- Performance: monitor changes in startup time, memory footprint, and JS execution performance.
- Stability: run long-duration tests to detect crashes or memory leaks.
How to start testing
- Get the code:
- Switch to the repository branch
v3.8.7-16kand build from that branch. - The
externalrepo uses large files — please install git-lfs before downloading.
- Prepare the environment:
- [Strongly recommended] Upgrade your development environment: update Android Studio to 2024 or later to ensure the build process handles new dependencies and configurations.
- [Important] Clean local project:
- If you already have a built Android project locally, please BACK UP your project’s
nativedirectory (if you have custom changes). - DELETE the
nativedirectory and related build caches (e.g.build), then rebuild to ensure all native dependencies are correctly updated.
- If you already have a built Android project locally, please BACK UP your project’s
For Cocos Creator 2.x users
Cocos Creator 2.x users please refer to the engine-native repo PR #4403 for validation. During verification, ensure you use NDK 28 or newer.