Skip to content
cccskills
FreePublished on GitHub

game-perf-profiling

Profiles game builds against frame-time, memory, GPU draw-call, and GC-spike budgets using Unity Profiler + Profile Analyzer + Performance Testing package and Unreal Insights + stat commands. Establishes pass/fail thresholds (16.6 ms at 60 fps, 33.3 ms at 30 fps), writes automated performance regression tests that run in CI, and emits a structured budget report per SKU. Use when a title must hit a declared frame-time or memory budget before a milestone gate or platform-cert submission, or when a recent change needs a performance regression check.

The English summary is being prepared. Showing the original description.

testland/qa13 stars(GitHub 13 + cccskills 0)

Run score Not tested

See how to install

Files included (4)

  • SKILL.md10.4 KB
  • .tessl-plugin/plugin.json688 B
  • references/unity-profiler.md2.2 KB
  • references/unreal-insights.md1.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

game-perf-profiling

Overview

Game performance QA verifies that a build meets its declared budgets across every target SKU before milestone sign-off or platform-cert submission. The performance category (category 4 in the platform-cert-overview-reference test-category taxonomy) covers frame-time, memory, GPU, thermal, and battery axes. This skill covers the two dominant engine stacks: Unity and Unreal Engine.

Frame-time budget anchors (from platform-cert-overview-reference):

Target frame rateFrame-time budget
60 fps16.67 ms per frame
30 fps33.33 ms per frame

Measuring averages is an anti-pattern: spikes hide in averages and cause cert failures. Measure p99 (99th-percentile frame time) and sustained-window maximums.

Step 1: Unity - Capture with the Profiler

Open the Profiler via Window > Analysis > Profiler (Ctrl+7) and enable the CPU Usage, GPU Usage, and Memory modules for a frame-time pass. Save the capture as a .data file (Profiler toolbar > Save) and retain it alongside any Profile Analyzer .pdata export - the .pdata file does not embed the original profile frames. Module-by-module capture detail, GPU-module platform constraints, and Profile Analyzer setup are in references/unity-profiler.md.

Step 2: Unity - Analyze with Profile Analyzer

Profile Analyzer compares two captures side by side, which the standard Profiler cannot. Open it via Window > Analysis > Profile Analyzer, then run the regression check:

  1. Load the baseline .data file as the left dataset.
  2. Load the candidate .data file as the right dataset.
  3. Compare median and p99 frame times per marker against the budget.
  4. Flag any marker whose p99 exceeds the per-frame budget allocation.

Step 3: Unity - Automated regression with Performance Testing package

Add "com.unity.test-framework.performance": "3.0.3" to Packages/manifest.json and reference Unity.PerformanceTesting in your assembly definition (docs.unity3d.com/Packages/com.unity.test-framework.performance@3.0/manual/index.html).

Measure.Method (Edit Mode or Play Mode)

[Test, Performance]
public void PathfindingCost_UnderBudget()
{
    Measure.Method(() => pathfinder.FindPath(start, goal))
        .WarmupCount(5)
        .MeasurementCount(20)
        .IterationsPerMeasurement(10)
        .Run();
}
  • WarmupCount(n): executes the method n times before recording to remove initialization overhead.
  • MeasurementCount(n): number of samples recorded; default is 7; 20+ improves stability.
  • IterationsPerMeasurement(n): repeats the code within each measurement to extend execution time above the 1 ms sensitivity floor.

Measure.Frames (Play Mode)

[UnityTest, Performance]
public IEnumerator CombatScene_FrameTime_UnderBudget()
{
    yield return Measure.Frames()
        .WarmupCount(5)
        .MeasurementCount(60)
        .Run();
}

Target standard deviation below 5%; avoid measurements under 1 ms due to environmental sensitivity.

Decorate tests [Test, Performance] for Edit Mode or [UnityTest, Performance] for Play Mode coroutines. View results via Window > Analysis > Performance Test Report.

GC-spike detection

Enable the ProfilerMarkers method on Measure.Method to target GC.Alloc markers specifically:

Measure.Method(() => SpawnWave())
    .ProfilerMarkers("GC.Alloc")
    .MeasurementCount(20)
    .Run();

A passing frame should produce 0 bytes of GC allocation in hot gameplay paths. Any non-zero sample is a regression candidate.

Disable VSync in Project Settings and remove cameras not needed for the measurement to keep results consistent between runs.

Step 4: Unreal - Stat commands for first-pass triage

Unreal Engine stat commands are entered into the PIE console while the game runs (dev.epicgames.com/documentation/en-us/unreal-engine/stat-commands-in-unreal-engine):

CommandShows
stat fpsFrames per second counter
stat unitFrame, Game thread, Draw (render thread), GPU, RHIT, and DynRes times; recommended starting point
stat gpuGPU statistics for the frame
stat scenerenderingGeneral rendering statistics; entry point for rendering bottleneck triage
stat gameHow long the various gameplay ticks are taking
stat memoryMemory usage by subsystem

stat unit is the first command to run on any new build: it identifies whether the bottleneck is game-thread, render-thread, or GPU, and measures how long the video card takes to render the scene. Run in a non-debug build for accurate results.

Step 5: Unreal - Deep analysis with Unreal Insights

When stat triage is not enough, capture a full trace with Unreal Insights. Launch it from the Editor's Trace/Insights Status Bar Widget or the prebuilt Engine\Binaries\[Platform]\UnrealInsights.exe binary, then work the CPU/GPU/Memory/Networking trace channels in the Timing Insights and Memory Insights views. The trace channels, the live Session Browser, and the two primary views are detailed in references/unreal-insights.md.

Step 6: GPU draw-call and overdraw budgets

Unity

The GPU Usage module's Hierarchy view shows DrawCalls count and GPU ms per rendering pass (see references/unity-profiler.md). Typical mobile budget: under 100 draw calls per frame; PC/console budget is title-specific but PostProcess and Transparent passes are common over-budget culprits.

Overdraw (multiple pixels written per screen pixel per frame) is visible when Transparent pass GPU ms is disproportionate to scene complexity. Reduce by: lowering particle counts, using depth pre-pass, culling off-screen transparency.

Unreal

Run stat scenerendering to surface general rendering statistics as the entry point for rendering bottleneck identification. Follow with stat gpu to get per-pass GPU time, then use the GPU Visualizer (ProfileGPU console command) for a hierarchical breakdown of GPU passes to isolate overdraw-heavy translucent passes (dev.epicgames.com/documentation/en-us/unreal-engine/gpu-profiling-in-unreal-engine).

Step 7: CI regression gate

Unity

Run Performance Testing package tests in a headless Unity batch session:

unity -batchmode -runTests -testPlatform StandaloneWindows64 \
  -testResults results.xml -projectPath .

Parse results.xml; fail the build if any PerformanceMeasurement sample set has a median or p99 exceeding the declared threshold. A zero-tolerance GC.Alloc assertion on hot paths is a recommended gate: one stray allocation per frame compounds to hundreds of KB/s under sustained play.

For stable CI numbers: disable VSync, remove unused cameras, set a fixed Quality level, and disable hardware reporting in Player Settings.

Unreal

Unreal Automation System (see unreal-automation-system) exposes a PerformanceCapture test type. Combine with a CI step that launches Insights in server mode, runs the target map for N frames, exports the trace, and compares the exported GPU/CPU frame time histogram against stored baselines.

Budget report template

Emit one row per profiled scenario per SKU:

ScenarioSKUMetricBudgetMeasured (p50)Measured (p99)Status
Combat encounterPC HighFrame time16.67 ms11.2 ms18.4 msFAIL p99
Combat encounterPC HighGC alloc/frame0 B0 B128 BFAIL p99
Open-world traversalPC HighFrame time16.67 ms13.1 ms15.9 msPASS

A FAIL on p99 triggers a regression investigation before milestone sign-off.

Anti-patterns

Anti-patternWhy it failsFix
Averaging frame time across a levelSpikes hide in averages and cause cert failuresUse p99 and sustained-window maximums
Profiling with Graphics Jobs enabled in UnityGPU module is disabled; no GPU data collectedDisable Graphics Jobs before capture
GC alloc tolerance in hot pathsCompounds to MB/s under sustained playAssert 0 B per frame in CI on hot paths
Running perf tests in debug builds (Unreal)Inaccurate results; use non-debug buildsProfile in Development or Shipping builds
Single-device perf sign-offLow-end SKU (Series S, Switch handheld) is the binding constraintRun budget checks on every SKU in the compatibility matrix

Limitations

  • Unity GPU profiling: Vulkan (Android, Linux, Windows), Metal (iOS/macOS), and WebGL are not supported; only DirectX 11/12 (Windows) and OpenGL (Linux) work (docs.unity3d.com/Manual/ProfilerGPU.html).
  • Unity Memory module detailed object statistics are unavailable in release builds (docs.unity3d.com/Manual/ProfilerMemory.html).
  • Profile Analyzer .pdata files do not embed original Profiler frames; retain .data files alongside them (docs.unity3d.com/Packages/com.unity.performance.profile-analyzer@1.2/manual/index.html).
  • Sony TRC and Nintendo Lotcheck thermal/battery performance gates are NDA-gated; consult the developer portal for current requirement numbers. Cited by stable ID "Sony TRC" and "Nintendo Lotcheck" per docs/PLUGIN_AUTHORING.md Step 4 fallback.
  • Godot engine performance tooling is out of scope; see godot-gut-tests for that engine's test framework.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Builds a CI gate that fails the build on **new** WCAG / a11y violations introduced by a PR while grandfathering pre-existing violations on a per-rule / per-page baseline. Aggregates verdicts from axe-core / pa11y / Lighthouse a11y / WAVE / IBM Equal Access scans. Use when a project has accumulated a11y debt and a strict "zero violations" gate would block every PR - the ratchet pattern lets the team ship while preventing regressions.

The English summary is being prepared. Showing the original description.

testland/qa13Updated Oct 20, 2026

Workflow skill that builds an A/B-test validity checklist from an experiment proposal, walking the canonical design-correctness gates - pre-registered OEC/power/guardrails, randomization unit + SRM check, assignment integrity, telemetry, peeking discipline, novelty/primacy, post-experiment SRM re-check - into a per-experiment checklist + sign-off form. Use when launching, auditing, or governing an experiment. For pitfall mechanics (guardrails, peeking) see experiment-results-interpreter's references; to read an already-valid result use experiment-results-interpreter; for per-SDK harness tests use experiment-sdk-testing - this gates DESIGN, not SDK code.

The English summary is being prepared. Showing the original description.

testland/qa13Updated Oct 20, 2026

The single install-flow skill: the reference contract for the PWA install flow (installability gate fields, `beforeinstallprompt` handshake, per-platform paths - Android WebAPK / iOS Share menu / Firefox no-op - and the `display-mode` post-install signal, in references/install-flow-reference.md) plus the build-an-X workflow that emits the Add-to-Home-Screen suite. Walks the four-stage timeline, emitting one test per gate cell per [web.dev/articles/install-criteria][install-criteria], the deferred-prompt → `prompt()` → `userChoice` chain per [web.dev/articles/customize-install][customize-install], the iOS Safari manual-metadata branch (`apple-touch-icon`) per [web.dev/learn/pwa/installation][learn-pwa], and the post-install `(display-mode: standalone)` MQ assertion. Output: a Playwright spec with per-stage cells plus a coverage matrix. Use when a PWA's manifest, icons, or install handler change, when install conversion drops at an unknown stage, or when triaging a flaky install assertion.

The English summary is being prepared. Showing the original description.

testland/qa13Updated Oct 20, 2026

Build-an-X workflow that uses an LLM to map existing tests to spec sections - given a spec doc + the test suite, the LLM identifies which tests cover which sections, surfaces uncovered sections (gap), and recommends specific tests to add. Output is a coverage matrix per spec ID. Scope is mapping tests that already exist and naming the gaps, not authoring tests for new acceptance criteria. Use when a spec doc and a test suite both exist but nobody can say which requirements are actually covered - before a release sign-off, an audit, or a decision about where to spend the next round of test effort.

The English summary is being prepared. Showing the original description.

testland/qa13Updated Oct 20, 2026

Generates tests from natural-language specs (acceptance criteria, user stories, requirements) using an LLM, with confidence scoring per test case (LLM self-assessment plus heuristics: assertion quality, naming, completeness), batching uncertain cases for human review, and integration with the team's existing test framework. Use when the user asks to generate unit tests from acceptance criteria, convert user stories to test cases, automate test creation from requirements, or augment a spec-driven test suite with AI-generated stubs that are then curated before merge.

The English summary is being prepared. Showing the original description.

testland/qa13Updated Oct 20, 2026

Configures Allure Report (test-runner adapter install, `allure-results` directory wiring, `categories.json` for failure classification, `history-trend.json` retention via the copy-history-between-runs pattern), runs the Allure CLI to convert `allure-results` to a static HTML site, and uploads the report as a CI artifact. Use when the team needs richer test reporting than JUnit XML - step-level attachments, per-test history, retry tracking, and severity / epic / feature labeling across framework-agnostic adapters (pytest, Jest, JUnit, TestNG, NUnit, Mocha). As a rich static HTML report generator, it is the open-source alternative to the sunset ExtentReports (JVM/.NET per-test HTML narrative); for hosted cross-run flakiness analytics rather than a static per-run report use currents-integration.

The English summary is being prepared. Showing the original description.

testland/qa13Updated Oct 20, 2026

See all skills by testland

Report a problem with this skill