Canvas Performance Optimization

Use when an isometric Canvas game drops frames, to cut draw calls and allocations and hold a steady 60fps.

49 stars 6 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add 0xheycat/isometric-game-skills --skill canvas-performance-optimization
Manual install
git clone --depth 1 https://github.com/0xheycat/isometric-game-skills.git /tmp/isometric-game-skills
mkdir -p ~/.claude/skills
cp -r /tmp/isometric-game-skills/skills/canvas-performance-optimization ~/.claude/skills/canvas-performance-optimization

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Canvas Performance Optimization

## Overview

Isometric games die by a thousand draw calls. This skill profiles the frame, culls off-screen tiles, batches from the atlas, and removes per-frame allocations to hit a stable 60fps.

## When to Use

- Frame rate drops or stutters.
- Large maps lag when panning.
- You suspect GC pauses or overdraw.

## Process

1. Profile first - measure where the frame time actually goes.
2. Cull: only draw tiles/objects inside the viewport.
3. Batch draws from one atlas to minimize texture binds.
4. Cache static layers (ground) to an offscreen canvas; redraw only when it changes.
5. Eliminate per-frame allocations (reuse arrays/objects).
6. Avoid sub-pixel blits; snap to integer pixels.
7. Re-profile to confirm the fix, do not assume.

```text
Profile -> Cull -> Batch -> Cache static layer -> Kill allocations -> Re-profile
```

## Rationalizations (Stop Lying to Yourself)

| Excuse | Reality |
|---|---|
| "I know what is slow without profiling" | Guessing wastes hours on the wrong thing. Profile first. |
| "Redrawing the ground every frame is fine" | Static ground should be cached. Redraw only on change. |

## Red Flags - STOP if you catch yourself:

- Optimizing before profiling.
- Redrawing static layers every frame.
- Allocating inside the render loop.

## Verification

You are NOT done until every box is checked:

- [ ] Frame time was profiled before and after.
- [ ] Off-screen content is culled and static layers cached.
Read the full skill on GitHub

Details

Skill name
canvas-performance-optimization
Path
skills/canvas-performance-optimization/SKILL.md
License
MIT
Repo updated
12 August 2026

FAQ

What does the Canvas Performance Optimization skill do?

Use when an isometric Canvas game drops frames, to cut draw calls and allocations and hold a steady 60fps.

How do I install the Canvas Performance Optimization skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add 0xheycat/isometric-game-skills --skill canvas-performance-optimization. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Canvas Performance Optimization popular?

It lives in 0xheycat/isometric-game-skills, which has 49 GitHub stars and 6 forks, and is included in 1 curated skill list.

Related skills

Animated Sprite Generation

49

0xheycat/isometric-game-skills

Use when creating looping animated isometric sprites (water, fire, windmills, flags) as frame strips that play back smoothly in-engine.

OtherIn 1 list

Asset Pipeline Automation

49

0xheycat/isometric-game-skills

Use when automating the path from generated sprites to a shipped atlas + map so re-generating art does not mean hours of manual rework.

Productivity & NotesIn 1 list

Autotiling Transitions

49

0xheycat/isometric-game-skills

Use when making different terrain types (grass, water, sand) blend with automatic edge and corner transition tiles instead of hard seams.

OtherIn 1 list

Canvas2d Isometric Renderer

49

0xheycat/isometric-game-skills

Use when building a Canvas 2D renderer that draws an isometric tilemap and sprites efficiently with correct ordering.

Frontend & DesignIn 1 list

Appsnap

65

Yrzhe/claude-skills

Capture a Mac app window as agent context. Use when the user asks to snap, inspect, read, capture, summarize, or work from the current Mac window, a visible app, a selected window, or an app screenshot. Strongly prefer for Appshot-like requests, "what is on this window", "use this app as context", and "grab the window text". SKIP for remote websites/files that can be fetched directly, for controlling the UI, clicking, typing, automating actions, or extracting hidden Google Docs/Sheets/Slides/Gmail canvas text beyond what macOS Accessibility exposes.

Frontend & Design

Chef

65

Yrzhe/claude-skills

Expert cooking assistant for Chinese and Western cuisine. Provides step-by-step recipes grounded in real data from scraped websites (xiachufang, allrecipes, BBC Good Food, etc.), free APIs (TheMealDB, Open Food Facts), and Kaggle datasets (Food.com, Epicurious). Use when user asks to cook a specific dish, wants suggestions based on ingredients they have, asks about technique/substitution/pairing, or wants nutrition info. Recipes are cached as Markdown files in data/recipes/ with YAML frontmatter — never re-fetch what's already there.

Frontend & Design

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.