[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CS1QDS9J77Q1515AY3X0Y0":3,"skill-same:01M7CS1QDS9J77Q1515AY3X0Y0":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7CS1QDS9J77Q1515AY3X0Y0","game-performance-budget",null,"Use when touching anything that runs per frame, adding entities\u002Feffects at scale, or answering a stutter\u002Fframe-drop report - frame budgets per target FPS, per-system split, the profiler per engine, before\u002Fafter numbers, and threshold tests.","makifbaysal\u002Ftasktrooper","makifbaysal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25031940?v=4","01M7CRG3ZCSYZSSEVDMW3DEYC8","Mehmet Akif Baysal","01M7CRG401FJ8YAXH5ER730XYV",122,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fgame-developer\u002Fskills\u002Fgame-performance-budget\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: game-performance-budget\ncategory: performance\ndescription: Use when touching anything that runs per frame, adding entities\u002Feffects at scale, or answering a stutter\u002Fframe-drop report - frame budgets per target FPS, per-system split, the profiler per engine, before\u002Fafter numbers, and threshold tests.\ntech_stack: Game core\nsource: informed by Donchitos\u002FClaude-Code-Game-Studios and the Unity, Godot, Unreal, Chrome DevTools and Bevy profiling docs; own wording\n---\n# Game Performance Budget\n\n## Overview\n\nA game has a hard deadline every frame. Miss it and the player sees a hitch, whatever the average says. Performance work is therefore budgeting and measuring, not guessing: know the budget, measure before, change one thing, measure after, write both numbers down.\n\n**Core principle:** No optimisation without a before and after measurement on the same scene, build type and machine. No hot-path change without proof it did not get slower.\n\n## The budget\n\n| Target | Frame budget | Typical for |\n|---|---|---|\n| 30 FPS | 33.3 ms | low-end mobile, some console cinematics |\n| 60 FPS | **16.67 ms** | default for this agent unless the task or repo says otherwise |\n| 90 FPS | 11.1 ms | VR minimum |\n| 120 FPS | 8.33 ms | high-refresh displays, competitive games |\n| 144 FPS | 6.94 ms | PC competitive |\n\nSplit it per system and leave headroom. An example 60 FPS CPU split (replace with the repository's own if it has one):\n\n| System | Budget |\n|---|---|\n| Gameplay scripts | 3.0 ms |\n| Physics | 2.0 ms |\n| AI and pathfinding | 2.0 ms |\n| Animation | 1.5 ms |\n| Rendering (CPU submit) | 4.5 ms |\n| UI | 1.0 ms |\n| Audio | 0.5 ms |\n| Headroom (OS, spikes, GC) | 2.17 ms |\n\nGPU time is a separate 16.67 ms; a frame is bound by whichever of CPU or GPU is slower. Memory gets a per-platform ceiling, and mobile adds thermal throttling: a game that holds 60 for two minutes and then drops is over budget.\n\n## Measure with the engine's tools\n\n| Engine | Frame\u002FCPU | Allocations \u002F memory | Instrument your code |\n|---|---|---|---|\n| Unity | Profiler (CPU, Rendering, Physics modules), Profile Analyzer for before\u002Fafter | Profiler GC Alloc column, Memory Profiler | `ProfilerMarker` \u002F `using (marker.Auto())`; Performance Testing package `Measure.Method` |\n| Godot | Debugger → Profiler, Visual Profiler, Monitors | Monitors: object\u002Fresource\u002Fnode counts, static memory | `Performance.get_monitor(...)`, `Time.get_ticks_usec()` around a block |\n| Unreal | `stat unit`, `stat game`, `stat gpu`, Unreal Insights (`-trace=cpu,frame,gpu`) | `memreport -full`, LLM (`-llm`) | `TRACE_CPUPROFILER_EVENT_SCOPE(Name)`, `SCOPE_CYCLE_COUNTER` |\n| Web | Chrome Performance panel (Bottom-up), `renderer.info` (three.js), Babylon Inspector | Memory panel heap snapshots before\u002Fafter a scene change | `performance.mark` \u002F `performance.measure` |\n| Bevy | `FrameTimeDiagnosticsPlugin` + `LogDiagnosticsPlugin`, Tracy via the `trace_tracy` feature | Tracy memory | `info_span!(\"name\").entered()` |\n\nProfile a development build on the target class of device where you can; an editor profile carries editor overhead and a desktop GPU hides mobile limits. Headless Chromium renders WebGL in software — never judge frame time from it.\n\n## The before\u002Fafter record\n\nPut this in the closing message whenever a hot path changed:\n\n```\nScene: Arena_Stress (200 enemies), dev build, M2 MacBook, 60 FPS target\n                   before     after\nframe median       14.1 ms    11.8 ms\nframe p99          22.7 ms    13.9 ms\nGC alloc \u002F frame   3.2 KB     0 B\nAI.Update          4.6 ms     2.1 ms   (path requests time-sliced, 8 per frame)\n```\n\nMedian hides hitches — always report a high percentile (p95\u002Fp99) or the worst frame too. If you could not profile on this machine, say so and give the test-level number you did get.\n\n## Threshold tests\n\nA performance test fails when the budget is exceeded, otherwise it is a log line nobody reads.\n\n```csharp\n[Test]\npublic void StepAll_200Agents_StaysUnderTwoMs() {\n    var grid = TestGrids.Arena64();\n    var agents = TestAgents.Spawn(200, seed: 7);\n    for (int i = 0; i \u003C 5; i++) Pathfinder.StepAll(grid, agents, maxRequests: 8);\n    var samples = new double[31];\n    var sw = new System.Diagnostics.Stopwatch();\n    for (int i = 0; i \u003C samples.Length; i++) {\n        sw.Restart(); Pathfinder.StepAll(grid, agents, maxRequests: 8); sw.Stop();\n        samples[i] = sw.Elapsed.TotalMilliseconds;\n    }\n    Array.Sort(samples);\n    Assert.That(samples[samples.Length \u002F 2], Is.LessThan(2.0), \"AI budget is 2 ms at 60 FPS\");\n}\n```\n\nThe same shape works in every runner: warm up, take N samples, assert on the median (and a looser bound on the max). Where the repository uses a benchmark harness — Unity's Performance Testing package (`Measure.Method`), `criterion` in Rust, Vitest `bench` — record with it and keep the assertion. Keep thresholds generous enough for CI noise and tight enough to catch a 2× regression. Allocation tests are exact: zero means zero (unity-performance-and-gc).\n\n## Where frames usually go\n\n- **Allocations and GC** in per-frame code (rule no-alloc-in-hot-paths).\n- **Draw calls \u002F batches:** too many materials, no atlas, no instancing, UI canvases rebuilt every frame.\n- **Overdraw:** stacked transparent particles and full-screen effects, worst on mobile.\n- **Physics:** mesh colliders on moving bodies, everything on one layer colliding with everything, continuous collision on objects that don't need it.\n- **AI:** pathfinding or perception for every agent every frame — time-slice it and run perception at 5–10 Hz.\n- **Lookups:** `GetComponent`, `Find`, `get_node`, `TActorIterator` per frame.\n- **Hitches:** shader compilation on first use (warm up \u002F PSO caching), synchronous asset loads, a GC spike, a save on the main thread.\n- **Idle work:** off-screen or sleeping objects still ticking — Godot `set_process(false)` \u002F `VisibleOnScreenEnabler2D`, Unity disabling components or `CullingGroup`, Unreal `PrimaryActorTick.bCanEverTick = false` and tick intervals, Bevy run conditions.\n\n## Procedure\n\n1. Name the budget and the scene that exercises the change.\n2. Measure before (median + p99 + allocations) and save the numbers.\n3. Change one thing.\n4. Measure after on the same scene, build type and machine.\n5. Keep the change only if it moved the number; add or update the threshold test.\n\n## Common Mistakes\n\n- Optimising what looks slow instead of what the profiler shows.\n- Reporting an average FPS instead of frame-time percentiles.\n- Profiling in the editor and generalising to a mobile build.\n- Micro-optimising a 0.05 ms function while a 6 ms one sits above it.\n\n## Red Flags\n\n- \"Should be faster now\" with no numbers.\n- A performance test with no assertion.\n- A hot-path diff with no before\u002Fafter record in the closing message.\n","# Game Performance Budget\n\n## Overview\n\nA game has a hard deadline every frame. Miss it and the player sees a hitch, whatever the average says. Performance work is therefore budgeting and measuring, not guessing: know the budget, measure before, change one thing, measure after, write both numbers down.\n\n**Core principle:** No optimisation without a before and after measurement on the same scene, build type and machine. No hot-path change without proof it did not get slower.\n\n## The budget\n\n| Target | Frame budget | Typical for |\n|---|---|---|\n| 30 FPS | 33.3 ms | low-end mobile, some console cinematics |\n| 60 FPS | **16.67 ms** | default for this agent unless the task or repo says otherwise |\n| 90 FPS | 11.1 ms | VR minimum |\n| 120 FPS | 8.33 ms | high-refresh displays, competitive games |\n| 144 FPS | 6.94 ms | PC competitive |\n\nSplit it per system and leave headroom. An example 60 FPS CPU split (replace with the repository's own if it has one):\n\n| System | Budget |\n|---|---|\n| Gameplay scripts | 3.0 ms |\n| Physics | 2.0 ms |\n| AI and pathfinding | 2.0 ms |\n| Animation | 1.5 ms |\n| Rendering (CPU submit) | 4.5 ms |\n| UI | 1.0 ms |\n| Audio | 0.5 ms |\n| Headroom (OS, spikes, GC) | 2.17 ms |\n\nGPU time is a separate 16.67 ms; a frame is bound by whichever of CPU or GPU is slower. Memory gets a per-platform ceiling, and mobile adds thermal throttling: a game that holds 60 for two minutes and then drops is over budget.\n\n## Measure with the engine's tools\n\n| Engine | Frame\u002FCPU | Allocations \u002F memory | Instrument your code |\n|---|---|---|---|\n| Unity | Profiler (CPU, Rendering, Physics modules), Profile Analyzer for before\u002Fafter | Profiler GC Alloc column, Memory Profiler | `ProfilerMarker` \u002F `using (marker.Auto())`; Performance Testing package `Measure.Method` |\n| Godot | Debugger → Profiler, Visual Profiler, Monitors | Monitors: object\u002Fresource\u002Fnode counts, static memory | `Performance.get_monitor(...)`, `Time.get_ticks_usec()` around a block |\n| Unreal | `stat unit`, `stat game`, `stat gpu`, Unreal Insights (`-trace=cpu,frame,gpu`) | `memreport -full`, LLM (`-llm`) | `TRACE_CPUPROFILER_EVENT_SCOPE(Name)`, `SCOPE_CYCLE_COUNTER` |\n| Web | Chrome Performance panel (Bottom-up), `renderer.info` (three.js), Babylon Inspector | Memory panel heap snapshots before\u002Fafter a scene change | `performance.mark` \u002F `performance.measure` |\n| Bevy | `FrameTimeDiagnosticsPlugin` + `LogDiagnosticsPlugin`, Tracy via the `trace_tracy` feature | Tracy memory | `info_span!(\"name\").entered()` |\n\nProfile a development build on the target class of device where you can; an editor profile carries editor overhead and a desktop GPU hides mobile limits. Headless Chromium renders WebGL in software — never judge frame time from it.\n\n## The before\u002Fafter record\n\nPut this in the closing message whenever a hot path changed:\n\n```\nScene: Arena_Stress (200 enemies), dev build, M2 MacBook, 60 FPS target\n                   before     after\nframe median       14.1 ms    11.8 ms\nframe p99          22.7 ms    13.9 ms\nGC alloc \u002F frame   3.2 KB     0 B\nAI.Update          4.6 ms     2.1 ms   (path requests time-sliced, 8 per frame)\n```\n\nMedian hides hitches — always report a high percentile (p95\u002Fp99) or the worst frame too. If you could not profile on this machine, say so and give the test-level number you did get.\n\n## Threshold tests\n\nA performance test fails when the budget is exceeded, otherwise it is a log line nobody reads.\n\n```csharp\n[Test]\npublic void StepAll_200Agents_StaysUnderTwoMs() {\n    var grid = TestGrids.Arena64();\n    var agents = TestAgents.Spawn(200, seed: 7);\n    for (int i = 0; i \u003C 5; i++) Pathfinder.StepAll(grid, agents, maxRequests: 8);\n    var samples = new double[31];\n    var sw = new System.Diagnostics.Stopwatch();\n    for (int i = 0; i \u003C samples.Length; i++) {\n        sw.Restart(); Pathfinder.StepAll(grid, agents, maxRequests: 8); sw.Stop();\n        samples[i] = sw.Elapsed.TotalMilliseconds;\n    }\n    Array.Sort(samples);\n    Assert.That(samples[samples.Length \u002F 2], Is.LessThan(2.0), \"AI budget is 2 ms at 60 FPS\");\n}\n```\n\nThe same shape works in every runner: warm up, take N samples, assert on the median (and a looser bound on the max). Where the repository uses a benchmark harness — Unity's Performance Testing package (`Measure.Method`), `criterion` in Rust, Vitest `bench` — record with it and keep the assertion. Keep thresholds generous enough for CI noise and tight enough to catch a 2× regression. Allocation tests are exact: zero means zero (unity-performance-and-gc).\n\n## Where frames usually go\n\n- **Allocations and GC** in per-frame code (rule no-alloc-in-hot-paths).\n- **Draw calls \u002F batches:** too many materials, no atlas, no instancing, UI canvases rebuilt every frame.\n- **Overdraw:** stacked transparent particles and full-screen effects, worst on mobile.\n- **Physics:** mesh colliders on moving bodies, everything on one layer colliding with everything, continuous collision on objects that don't need it.\n- **AI:** pathfinding or perception for every agent every frame — time-slice it and run perception at 5–10 Hz.\n- **Lookups:** `GetComponent`, `Find`, `get_node`, `TActorIterator` per frame.\n- **Hitches:** shader compilation on first use (warm up \u002F PSO caching), synchronous asset loads, a GC spike, a save on the main thread.\n- **Idle work:** off-screen or sleeping objects still ticking — Godot `set_process(false)` \u002F `VisibleOnScreenEnabler2D`, Unity disabling components or `CullingGroup`, Unreal `PrimaryActorTick.bCanEverTick = false` and tick intervals, Bevy run conditions.\n\n## Procedure\n\n1. Name the budget and the scene that exercises the change.\n2. Measure before (median + p99 + allocations) and save the numbers.\n3. Change one thing.\n4. Measure after on the same scene, build type and machine.\n5. Keep the change only if it moved the number; add or update the threshold test.\n\n## Common Mistakes\n\n- Optimising what looks slow instead of what the profiler shows.\n- Reporting an average FPS instead of frame-time percentiles.\n- Profiling in the editor and generalising to a mobile build.\n- Micro-optimising a 0.05 ms function while a 6 ms one sits above it.\n\n## Red Flags\n\n- \"Should be faster now\" with no numbers.\n- A performance test with no assertion.\n- A hot-path diff with no before\u002Fafter record in the closing message.\n",{"name":5,"source":24,"category":25,"tech_stack":26,"description":7},"informed by Donchitos\u002FClaude-Code-Game-Studios and the Unity, Godot, Unreal, Chrome DevTools and Bevy profiling docs; own wording","performance","Game core","main","910394a0b6db9fc8c9a8f36328ec421d3ebd8b38","catalog\u002Fagents\u002Fgame-developer\u002Fskills\u002Fgame-performance-budget",18,"https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper","https:\u002F\u002Ftasktrooper.ai","https:\u002F\u002Fgithub.com\u002Fmakifbaysal","Senior Software Developer","2026-11-15 04:50:29",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add makifbaysal\u002Ftasktrooper --skill game-performance-budget",{"tool":42,"command":43},"bunx","bunx skills add makifbaysal\u002Ftasktrooper --skill game-performance-budget",{"tool":45,"command":46},"pnpm","pnpm dlx skills add makifbaysal\u002Ftasktrooper --skill game-performance-budget","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fgame-developer\u002Fskills\u002Fgame-performance-budget\u002FSKILL.md",true,[],[51,57,64,71,78,85],{"skillNo":52,"name":53,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7CSVEPQW6J6TD6CS2T5FPNZ","visual-craft","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fvisual-craft\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7CSVAQG91ETHQ0HBNZDG5FR","ux-copy","Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fux-copy\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7CSV6H0J38659NDXHJQ8396","screen-mockup-html","Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fscreen-mockup-html\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7CSV3JFRF3BM3XK52M7YEYR","performance-awareness","How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fperformance-awareness\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7CSTZDH00YRF5SCT7BRT9QD","design-variants","Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-variants\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7CSTV6P3SM3PAE28DB0RF77","design-system-authoring","Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-system-authoring\u002FSKILL.md",[],[]]