A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
docs(size): Douyin's total has a second number, and now a source
esengineacc897d572d4
diff --git a/pipeline/src/project/sizeBudget.ts b/pipeline/src/project/sizeBudget.tsindex 1ef3942f2..91715f9ed 100644--- a/pipeline/src/project/sizeBudget.ts+++ b/pipeline/src/project/sizeBudget.ts@@ -78,11 +78,21 @@ export function builtinSizeBudgets(platform: ExportPlatform): readonly SizeBudgereturn NO_BUDGETS;}-/** Douyin's caps are lower than WeChat's on the total, which is the one that- * surprises: a package that fits WeChat can still be 10MB over here. */+/**+ * Douyin's total is lower than WeChat's: a package that fits WeChat can be 10MB+ * over here. It is the DEFAULT — 「开通虚拟支付后的小游戏不超过30M」, which only+ * the account knows, so 30MB is `packaging.sizeBudget.douyin`'s to say.+ * https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/guide/basic-function/subpackages/introduction+ */const DOUYIN_BUDGETS: readonly SizeBudget[] = [- { scope: 'initial', maxBytes: 4 * MB, note: "Douyin caps a mini-game's main package at 4MB" },- { scope: 'total', maxBytes: 20 * MB, note: 'Douyin caps a mini-game at 20MB across the main package and all subpackages' },+ { scope: 'initial', maxBytes: 4 * MB, note: "Douyin caps a mini-game's main package at 4MB (单个主包不超过 4MB)" },+ {+ scope: 'total',+ maxBytes: 20 * MB,+ note: 'Douyin caps a mini-game at 20MB across the main package and all subpackages'+ + ' — 30MB once the account has enabled in-game purchase, which only that account knows:'+ + ' set packaging.sizeBudget.douyin to be judged against it',+ },];const NO_BUDGETS: readonly SizeBudget[] = [];