{
  "slug": "performance-optimization",
  "skill": "performance-optimization",
  "upstream": "gamedev-skills/awesome-gamedev-agent-skills@184b72be02884f782a0058f2eeae2ce4277453e4",
  "upstreamSha": "184b72be02884f782a0058f2eeae2ce4277453e4",
  "date": "2026-10-28",
  "engine": "Godot 4.7.2",
  "env": [
    "Node v20.19.2",
    "Godot 4.7.2-stable (linux x86_64)",
    "xvfb + OpenGL 3 (gl_compatibility): draw-call counts need a real renderer"
  ],
  "trigger": "static",
  "passed": 22,
  "total": 22,
  "commands": [
    "(cd examples && xvfb-run -a -s -screen 0 1280x720x24 {godot} --path . --rendering-driver opengl3 --audio-driver Dummy --resolution 640x360 -s tests/run_tests.gd)",
    "(cd examples && xvfb-run -a -s -screen 0 1280x720x24 {godot} --path . --rendering-driver opengl3 --audio-driver Dummy --resolution 640x360 -s tests/screenshot.gd)"
  ],
  "checks": [
    {
      "criterion": "trigger",
      "name": "SKILL.md description says when to use it",
      "pass": true,
      "detail": "Find and fix game performance problems methodically — measure with the engine profiler first, reason about the frame-tim"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"My game stutters, how do I profile and find the bottleneck?\"",
      "pass": true,
      "detail": "rank 1/117, overlap 3"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"Too many draw calls from sprites, how do I batch them?\"",
      "pass": true,
      "detail": "rank 1/117, overlap 3"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"Add object pooling for bullets to stop GC spikes\"",
      "pass": true,
      "detail": "rank 1/117, overlap 3"
    },
    {
      "criterion": "trigger",
      "name": "does not trigger on: \"Build a utility AI for villagers\"",
      "pass": true,
      "detail": "rank 2/117, overlap 0"
    },
    {
      "criterion": "trigger",
      "name": "does not trigger on: \"Write a sokoban push rule\"",
      "pass": true,
      "detail": "rank 11/117, overlap 0"
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): 60 / 30 / 120 FPS budgets are 16.67 / 33.3 / 8.33 ms",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): sub-budgets at 60 FPS leave slack inside 16.67 ms",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): a subsystem over its slice is flagged",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): TIME_PROCESS is in seconds",
      "pass": true,
      "detail": "with a 6 ms burn it reads 0.005-0.02, not 6"
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): 5000 acquires reuse the 64 pre-warmed bullets (no new instances)",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): node count is unchanged after 100 frames of shooting",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): pooling is faster than instantiate/free per shot",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): 200 sprites sharing one texture batch into a few draw calls",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): unique textures and materials cost many more draw calls",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): 1000 MultiMesh instances draw in one call",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "profiling, pooling and draw-call checks (xvfb): exits 0 with no script errors",
      "pass": true,
      "detail": "exit 0"
    },
    {
      "criterion": "output",
      "name": "screenshot screenshot.png rendered",
      "pass": true
    },
    {
      "criterion": "output",
      "name": "self-check list has at least 3 items",
      "pass": true,
      "detail": "5 items"
    },
    {
      "criterion": "single",
      "name": "one job per skill (reviewed)",
      "pass": true,
      "detail": "One job: measuring and fixing frame-time problems (budgets, profilers, pooling, draw calls, allocations). Engine-specific deep dives are left to engine skills."
    },
    {
      "criterion": "bilingual",
      "name": "English SKILL.md from upstream",
      "pass": true
    },
    {
      "criterion": "bilingual",
      "name": "Chinese guide written",
      "pass": true,
      "detail": "895 chars"
    }
  ]
}
