# debuff vs PixiJS

PixiJS is a 2D renderer, and one of the fastest on the web. debuff is a small game framework: renderer, game loop, input, audio, assets, testing and agent tooling. They overlap on drawing sprites and differ on almost everything else. Here's how they compare as of October 2026.

## Short answer

Pick **PixiJS** if you want a fast, mature renderer and are happy to choose the rest yourself, or if you're building something that isn't a game, such as interactive graphics or a UI-heavy app. Pick **debuff** if you want the game loop, input, tests and agent tooling to come together.

## At a glance

| | debuff 0.20 | PixiJS 8.22.0 |
| --- | --- | --- |
| License | MIT | MIT |
| Language | TypeScript | TypeScript |
| What it is | Game framework | Renderer ([pixijs.com](https://pixijs.com/)) |
| Game loop, scenes, input | Built in (fixed-step clock, seeded RNG) | Bring your own |
| Audio, UI | `@debuffjp/audio`, `@debuffjp/ui` | Separate libraries (`@pixi/sound`, `@pixi/ui`) |
| Rendering | WebGL2 via [spryte](./introducing-spryte), Canvas 2D fallback | WebGPU and WebGL |
| Sprites at 60 fps (our benchmark) | 800,000 (`draw.sprites`), 100,000 (`draw.sprite`) | 400,000 (`ParticleContainer`), 50,000 (`Sprite`) |
| Full runtime, brotli | 30 kB (every debuff package) | 185 kB (`pixi.min.js`) |
| Testing | Scenarios, screenshot baselines, fuzz, [Keiko](./introducing-keiko) | Up to you |
| Coding agents | MCP server for the running game, `AGENTS.md` | [llms.txt](https://pixijs.com/llms.txt), llms-full.txt, [official skills](https://github.com/pixijs/pixijs-skills) |
| Community | Small | Large (about 48k GitHub stars) |

## Rendering speed

debuff renders through [spryte](https://github.com/debuffjp/spryte). We compared it with PixiJS 8 on one machine, like for like, over 3 interleaved rounds, after checking that both draw the same pixels:

- `draw.sprite` against `Sprite`: **2.6x faster** on a bunnymark, and **3.5x faster** with changing rotation, scale, tint and four textures.
- `draw.sprites` against `ParticleContainer`: **2.6x faster** with position only, and **4.2x faster** when every particle's scale, rotation, tint and alpha change over time.

The method, raw numbers and caveats (one machine, no phones yet) are on the [benchmarks page](/benchmarks), and you can run it yourself.

## Where PixiJS is stronger

- **Rendering features.** WebGPU, filters, masks, text rendering, Spine and a large plugin ecosystem.
- **Maturity and reach.** Years of production use in games, ads and interactive sites, and a large community.
- **Agent docs.** PixiJS publishes llms.txt and an official skills repository for v8, installable as a Claude Code plugin. That's current, well-kept documentation for agents.
- **Flexibility.** It doesn't impose a game structure, so it fits into apps and frameworks easily.

## Where debuff is different

- **It's a whole game framework.** Loop, scenes, input with action bindings, audio, tilemaps, tweens and particles come together, in a much smaller runtime.
- **Tests for games.** Fixed steps and a seeded RNG make runs deterministic, so `npm test` can run scenarios with screenshot baselines, and `npx debuff fuzz` saves every crash as a replay.
- **Agents that see the game.** We found no MCP server for PixiJS. debuff's lets an agent attach to your open game, read the moments you flag, reproduce them with `game_replay`, and tune typed params you can undo. See the [agent comparison post](./coding-agents-and-browser-game-engines).
- **Tools that also work with PixiJS.** [Keiko](./introducing-keiko) tests a PixiJS game in Node on a virtual clock, [Myaku](./introducing-myaku) explains dropped frames, and [tenten](./pixel-art-you-can-cat) exports sheets Pixi loads. If you only want the renderer, [spryte](./introducing-spryte) is a standalone library of about 10 kB.

## Which to choose

If you need a renderer inside a larger app, or PixiJS's rendering features, use PixiJS. If you're making a small game and want the rest of the stack included, try debuff:

```bash
npm create debuff@latest my-game
```