# GraphicsAccelerateKit-LaunchAcceleration-Codelab-ArkTS **Repository Path**: harmonyos_codelabs/graphics-accelerate-kit-launch-acceleration-codelab-arkts ## Basic Information - **Project Name**: GraphicsAccelerateKit-LaunchAcceleration-Codelab-ArkTS - **Description**: 本示例主要展示如何通过Graphics Accelerate Kit(图形加速服务)的游戏启动加速服务实现内存镜像功能 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-24 - **Last Updated**: 2025-08-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Implementing the Memory Mirroring Function Based on the Game Launch Acceleration Service (ArkTS) ## Overview This sample demonstrates how to use Graphics Accelerate Kit (game launch acceleration service) to implement instant game launch during the next cold start by loading a memory snapshot, if there are no resource updates. ## Preview ![interface](screenshots/interface.png) ## Project Directory ``` └──entry/src/main // Code area. ├──cpp │ ├──types │ │ ├──libentry │ │ │ └──index.d.ts // API registration file at the native layer. │ │ └──libtuanjie │ │ └──index.d.ts // Tuanjie API registration file. │ ├──napi_init.cpp // Functions of APIs at the native layer. │ └──CMakeLists.txt // Compilation configurations at the native layer. ├──ets │ ├──ability │ │ └─TuanjiePlayerAbilityBase.ets // Entry point class. The launch acceleration capability is set here. │ ├──common // Common classes. │ ├──pages │ │ ├──components // UI components. │ │ │ └──... │ │ └──Index.ets // Home screen. │ ├──utils // Utility class. │ ├──webview // Browser control. │ └──workers // Worker thread class. └──resources │ ├──base/media // Image resources. │ │ └──... │ └──rawfile // Model and UI resources. │ │ └──... ``` ## Instructions 1. Download a project. ``` git clone https://gitee.com/harmonyos_codelabs/graphics-accelerate-kit-launch-acceleration-codelab-arkts.git cd graphics-accelerate-kit-launch-acceleration-codelab-arkts git lfs pull ``` 2. Use DevEco Studio to open the project directory. 3. Set **bundleName** in the **app.json5** file in **AppScope**. 4. Configure signing information in **signingConfigs** of **build-profile.json5**. 5. Run the sample code on a HarmonyOS NEXT device. For more details, please refer to [Graphics Accelerate Kit](https://developer.huawei.com/consumer/en/doc/harmonyos-guides/graphics-accelerate-kit-guide). ## Constraints 1. The sample app is supported only on Huawei phones and tablets running the standard system. 2. The HarmonyOS version must be HarmonyOS 6.0.0 Release or later. 3. The DevEco Studio version must be DevEco Studio 6.0.0 Release or later. 4. The HarmonyOS SDK version must be HarmonyOS 6.0.0 Release SDK or later.