# Web Game Speed and Tests

> Keeps browser games smooth without frame stutter, and adds repeatable Vitest and Playwright tests.

- Page: https://youraiskill.com/skill/makifbaysal-web-game-performance-and-testing
- What it does: Use when working on any browser game (Phaser, PixiJS, three.js, Babylon.js, PlayCanvas, Excalibur, KAPLAY) - requestAnimationFrame with clamped delta and visibility pause, zero-allocation frame loops, measuring in DevTools, bundle and asset size budgets, Vitest with seeded RNG and injected time, and a seeded Playwright smoke test with console capture.
- Niches: games, testing, frontend, three-d
- Licence: Apache-2.0
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions and reference files only (1 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
