Skip to content

SUD Game Package Format ​

Overview ​

Design Vision ​

SUD Game Package (hereinafter referred to as SUD) is designed to define the next-generation minigame distribution standard. SUD aims to address the increasingly complex requirements of game engineering, solve the "slow loading, high IO overhead" problems of traditional game packages, improve the player experience, and reduce startup churn.

Key Capabilities ​

  • Single-file game package (.sp format): no full extraction required, supports random file access, greatly reduces IO overhead, and speeds up game startup and resource loading.

  • Memory mapping (mmap) support: resources such as audio/video and large images can be mapped directly into memory, avoiding repeated reads and improving runtime smoothness.

  • Flexible compression strategy: supports 4 compression algorithms (no compression / Deflate / Zstd / Brotli), which can be chosen according to resource type (code / images / audio and video), balancing compression ratio and loading speed.

  • Game encryption protection: supports AES-128-CTR/ChaCha20 streaming encryption, with each file encrypted independently, preventing resources from being stolen or decompiled.

  • Integrity verification: implements full-package/single-file verification based on a Merkle Tree; any tampering (even a single byte) is detected, and abnormal packages are rejected from loading.

  • Asymmetric signature: supports Ed25519/RSA-2048 signatures with developer self-signing, ensuring the game package comes from a trusted source and preventing malicious tampering.