memory-budgeting

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Memory Budgeting

Memory Budgeting

Purpose

目的

Define residency and memory budgets so content, streaming, and runtime systems fit target platforms.
定义residency和memory budgets,确保内容、流传输及运行时系统适配目标平台。

Use When

适用场景

  • the project has constrained hardware targets
  • memory spikes cause instability
  • large content sets are growing
  • 项目存在硬件目标限制
  • 内存峰值导致系统不稳定
  • 大型内容集持续增长

Inputs

输入项

  • target platforms
  • asset classes
  • streaming model
  • system residency assumptions
  • 目标平台
  • 资产类别
  • 流传输模型
  • 系统residency假设

Process

流程

  1. budget memory by asset and system class
  2. define who owns loading and unloading decisions
  3. measure peak and steady-state memory in representative flows
  4. flag accidental hard references or pinned content
  5. connect fixes to content and architecture owners
  1. 按资产和系统类别分配memory budgets
  2. 明确加载与卸载决策的负责人
  3. 在典型流程中测量峰值内存与稳态内存
  4. 标记意外的硬引用或固定内容(pinned content)
  5. 将修复任务对接给内容与架构负责人

Outputs

输出项

  • memory budget sheet
  • residency rules
  • peak-memory review notes
  • ownership map
  • memory budget表
  • residency规则
  • 峰值内存评审记录
  • 职责归属图

Quality Bar

质量标准

  • makes ownership, state flow, and failure behavior explicit
  • improves maintainability without over-abstracting
  • supports testing, debugging, and safe iteration
  • 明确职责归属、状态流转及故障行为
  • 在不过度抽象的前提下提升可维护性
  • 支持测试、调试及安全迭代

Common Failure Modes

常见失败模式

  • coupling systems through hidden globals or timing assumptions
  • writing logic that is hard to test or debug
  • optimizing the wrong layer before measuring
  • 通过隐藏全局变量或时序假设耦合系统
  • 编写难以测试或调试的逻辑
  • 在未测量前就错误地优化某一层级

Related Agents

相关Agent

  • performance-reviewer
  • technical-artist
  • build-engineer
  • performance-reviewer
  • technical-artist
  • build-engineer

Related Commands

相关命令

  • memory-budget
  • verify
  • release-check
  • memory-budget
  • verify
  • release-check

Notes

注意事项

  • Keep this skill aligned with the relevant rules layer and current project documentation.
  • If engine-specific constraints materially change the workflow, hand off to the matching engine skill or engine-specific reviewer.
  • 保持本skill与相关规则层及当前项目文档一致。
  • 若引擎特定约束对工作流产生实质性影响,转交至匹配的引擎skill或引擎特定评审人员。