game-performance-2d

game-performance-2d is a skill for Codex from woliveiras/geremmyas. It costs 54 tokens per session (455 once invoked), scanned A, original, MIT.

A guide for diagnosing measured performance problems in 2D games. It covers frame rate, frame time, memory, loading, draw calls, tile maps, particles, and object pooling.

In plain words
What is it for?
Use it to profile a representative game scene, find CPU, GPU, memory, loading, or network costs, apply a targeted change, and compare the results.
Why use it?
A game may stutter or run slowly for different reasons, and guessing can waste time. It uses repeatable measurements and platform limits to identify and verify one bottleneck at a time.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: $skill-name invocation.

Good fit Use it to profile a representative game scene, find CPU, GPU, memory, loading, or network costs, apply a targeted change, and compare the results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/woliveiras/geremmyas/game-performance-2d
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add woliveiras/geremmyas --skill game-performance-2d
Clone the repo
git clone --depth 1 https://github.com/woliveiras/geremmyas

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for game-performance-2d

README.md
[![agentmods](https://agentmods.dev/badge/skills/woliveiras/geremmyas/game-performance-2d/github.svg)](https://agentmods.dev/skills/woliveiras/geremmyas/game-performance-2d)
Your own site
<a href="https://agentmods.dev/skills/woliveiras/geremmyas/game-performance-2d"><img src="https://agentmods.dev/badge/skills/woliveiras/geremmyas/game-performance-2d/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for game-performance-2d

Your own site · 80×15
<a href="https://agentmods.dev/skills/woliveiras/geremmyas/game-performance-2d"><img src="https://agentmods.dev/badge/skills/woliveiras/geremmyas/game-performance-2d.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 455 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00455
Opus 5 $0.00027 $0.00228
Sonnet 5 $0.00011 $0.00091
Haiku 4.5 $0.00005 $0.00046

Measured 10d ago against content hash fa83c05c0677, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

game-performance-2d scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

content/skills/game-performance-2d/SKILL.md · 48 lines

What it actually says

Game Performance 2D

Optimize measured bottlenecks against an explicit platform budget.

Establish the budget and baseline

  1. Identify target hardware, renderer, resolution, browser or export target, and required frame rate.
  2. Reproduce the representative scene in a production-like build.
  3. Capture CPU, GPU, memory, loading, network, and frame-time evidence as applicable.
  4. Record engine version, build flags, content seed, viewport, and object counts.
  5. Rank bottlenecks by player impact and measured cost.

Load references

  • Read profiling-and-budgets.md for measurement, bottleneck classification, and optimization order.
  • For Phaser, also read phaser.md.
  • For Godot, also read godot.md.
  • Use $game-build-and-release when production build configuration or asset delivery is the boundary.

Optimize one bottleneck

  1. State the hypothesis and metric expected to change.
  2. Apply the smallest architectural or content change that targets it.
  3. Preserve gameplay, visual, and accessibility contracts.
  4. Re-run the identical benchmark and compare percentiles, not a single FPS reading.
  5. Remove instrumentation that should not ship or gate it behind debug settings.

Verify

  • Compare before and after on target-like hardware.
  • Test worst-case content, not only an empty scene.
  • Check memory growth across repeated scene changes.
  • Verify both average frame time and spikes.
  • Report tradeoffs, quality changes, and untested targets.

Guardrails

  • Do not optimize from intuition alone.
  • Do not pool cheap objects without proving allocation is material.
  • Do not trade deterministic behavior or correctness for small gains silently.
  • Do not use editor performance as proof of exported-build performance.
  • Do not move work to threads before checking API thread safety and transfer cost.
Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 48 lines · 54 tokens per session scan A fa83c05c0677

Subscribe to this mod's changes

game-performance-2d is a skill published in the GitHub repository woliveiras/geremmyas (10 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 455 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories