animate-performance

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Adobe Animate Performance Optimization

Adobe Animate Performance Optimization

Overview

Overview

針對 Adobe Animate + CreateJS 專案進行系統性效能優化,識別並修復常見效能瓶頸。
Systematic performance optimization for Adobe Animate + CreateJS projects, identifying and fixing common performance bottlenecks.

When to Use This Skill

When to Use This Skill

  • 完成 Adobe Animate 專案時進行最終效能審查
  • 應用程式出現卡頓、記憶體使用過高、或響應變慢
  • 重構現有程式碼以改善效能
  • Conduct final performance reviews when completing Adobe Animate projects
  • When applications experience stuttering, excessive memory usage, or slow response
  • Refactor existing code to improve performance

7 大效能問題

7 Major Performance Issues

Required References:
  • references/common-patterns.md
    - 效能反模式識別與檢測策略
  • references/fix-strategies.md
    - 具體修復程式碼範例
#問題類型檢測關鍵字優先級
1Event Listener Memory LeaksaddEventListener 無對應 removeEventListenerP0
2Redundant Event Bindingsinit 函數中重複註冊事件P1
3Excessive Per-Frame ExecutionTicker.addEventListener("tick") 內有迴圈P1
4MovieClip Lifecycle IssuesMovieClip 建立後無 .stop()P2
5Excessive stage.update()stage.update() 在迴圈內P1
6Missing Cache複雜靜態圖形未使用 cache()P3
7Resource Management一次載入所有資源、音訊未清理P3
詳見
references/common-patterns.md
取得完整的檢測模式與程式碼範例。
Required References:
  • references/common-patterns.md
    - Performance anti-pattern identification and detection strategies
  • references/fix-strategies.md
    - Specific fix code examples
#Issue TypeDetection KeywordsPriority
1Event Listener Memory LeaksaddEventListener without corresponding removeEventListenerP0
2Redundant Event BindingsRepeated event registration in init functionP1
3Excessive Per-Frame ExecutionLoops inside Ticker.addEventListener("tick")P1
4MovieClip Lifecycle IssuesMissing .stop() after MovieClip creationP2
5Excessive stage.update()stage.update() inside loopsP1
6Missing CacheComplex static graphics not using cache()P3
7Resource ManagementLoading all resources at once, audio not cleaned upP3
See
references/common-patterns.md
for complete detection patterns and code examples.

Performance Analysis Workflow

Performance Analysis Workflow

Required References:
  • references/common-patterns.md
    - 問題識別
  • references/fix-strategies.md
    - 修復實作
  • references/best-practices.md
    - 程式碼審查標準
Required References:
  • references/common-patterns.md
    - Issue identification
  • references/fix-strategies.md
    - Fix implementation
  • references/best-practices.md
    - Code review standards

Phase 1: Automated Scanning

Phase 1: Automated Scanning

使用
performance-analyzer
agent 掃描程式碼庫:
  • 自動檢測 7 大效能問題
  • 產出詳細報告(含檔案位置與行號)
  • 提供自動修復選項
Use the
performance-analyzer
agent to scan the codebase:
  • Automatically detect the 7 major performance issues
  • Generate a detailed report (including file locations and line numbers)
  • Provide automatic repair options

Phase 2: Manual Review

Phase 2: Manual Review

針對需要判斷的問題進行人工審查:
  • 根據 agent 報告進行情境優化
  • 查閱
    references/fix-strategies.md
    取得修復範例
Conduct manual reviews for issues requiring judgment:
  • Perform scenario-based optimization based on the agent's report
  • Refer to
    references/fix-strategies.md
    for repair examples

Phase 3: Testing

Phase 3: Testing

驗證改善效果:
  • 使用 NW.js 或瀏覽器 DevTools Performance 面板
  • 監控記憶體使用趨勢
  • 檢查互動時的 FPS
Verify improvement effects:
  • Use NW.js or browser DevTools Performance panel
  • Monitor memory usage trends
  • Check FPS during interaction

Triggering the Performance Analyzer

Triggering the Performance Analyzer

"Check this project for performance issues"
"Optimize the performance"
"檢查效能問題"
"效能優化"
performance-analyzer agent 會:
  1. 掃描 js/ 目錄下所有 JavaScript 檔案
  2. 識別 7 大效能問題
  3. 產出報告(含具體位置)
  4. 詢問是否要自動套用修復
"Check this project for performance issues"
"Optimize the performance"
"Check for performance issues"
"Optimize performance"
The performance-analyzer agent will:
  1. Scan all JavaScript files in the js/ directory
  2. Identify the 7 major performance issues
  3. Generate a report (including specific locations)
  4. Ask whether to automatically apply fixes