Web performance

From MRCalderon3D/everything-game-dev-code · View interactive version

Web performance is an AI agent skill from the GitHub repository MRCalderon3D/everything-game-dev-code. Keep a browser game inside its frame budget through allocation discipline, pooling, and devtools-driven profiling.

How to use this skill

Skill file

Web Performance

Purpose

Keep a browser game inside its frame budget through allocation discipline, pooling, and devtools-driven profiling.

Use When

Inputs

Process

  1. set explicit budgets per system and measure before optimizing: capture a browser devtools performance profile during real gameplay, not menus
  2. read the profile for long tasks, dropped frames, and minor-GC markers; use the allocation profiler to find per-frame garbage sources
  3. remove steady-state allocation from hot paths: reuse scratch vectors and arrays, avoid per-frame closures, string building, and array methods that allocate
  4. pool high-churn entities with explicit acquire, release, and reset rules so gameplay spikes do not become GC pauses
  5. cull and throttle: skip offscreen work, cap particle and entity counts, stop or reduce work when the page is hidden, and re-verify on the low-end device after each change

Outputs

Quality Bar

Common Failure Modes

Related Agents

Related Commands

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.