Skip to content

Lesson 9 of 9 · 28m

Profiling, Builds, and the Release Checklist

Profile real bottlenecks, configure builds intentionally, and use a disciplined pre-release checklist before shipping a small game.

The last week of a game project exposes every lie the project told itself. The game is fast in the editor but slow on hardware. The build is twice the expected size. A settings toggle works in play mode and fails in release. Shipping is a separate engineering mode: measure, freeze, verify, and only then celebrate.

Profile before optimizing

Open the Profiler and record actual play. Look for CPU spikes, rendering cost, memory growth, GC allocations, audio stalls, and physics work. The deep hierarchy is useful, but the first question is simpler: what changed when the hitch appeared?

Common allocation offenders:

string label = "Score: " + score;        // every frame
foreach (var enemy in enemies)           // usually fine, but know the collection
GetComponent<SpriteRenderer>()           // every frame
Instantiate(damageNumberPrefab)          // every hit

Fix the pattern, not the symptom. Cache components. Pool frequent spawns. Avoid per-frame string construction where a text component can be updated only when values change.

Editor performance is a liar

The editor carries inspectors, domain reload behavior, debugging, safety checks, and host-machine headroom. Build a development player, enable Autoconnect Profiler, and test on target hardware. A mobile game tested only on a workstation is a rumor.

Understand build configuration

Player Settings determine product identity, versioning, icons, orientation, rendering, scripting backend, and compression:

Company Name:        SudoSecurity
Product Name:        Orbital Panic
Version:             0.1.0
Color Space:         Linear
Api Compatibility:   .NET Standard 2.1
Target Architectures: platform-specific

Version numbers are operational data. Put them somewhere visible in a debug menu or logs. When a player says "it crashes," the first useful question is which build they have.

Development builds are for diagnosis

A development build can include script debugging and profiling support, but it is slower and exposes more diagnostic surface. Use it internally. Release candidates should be non-development builds unless you are intentionally diagnosing a release-only failure.

Reduce build size honestly

Inspect the build report. Large textures, unused Resources assets, uncompressed audio, and duplicated packages dominate size. Compression settings, texture max sizes, sprite atlases, streaming audio, and removing unused content matter more than random internet advice about stripping engine code.

Use a release checklist

[ ] clean build from a fresh clone or clean workspace
[ ] correct version and bundle identifier
[ ] release scenes only in Build Settings
[ ] start, play, pause, win, lose, restart, quit
[ ] save creation, load, migration, corruption behavior
[ ] target resolution, aspect ratio, and input devices
[ ] audio mixer volumes and mute behavior
[ ] no development console or debug cheats in release
[ ] profiler pass on target hardware
[ ] crash/relaunch smoke test

A checklist is not bureaucracy. It is how tired humans avoid repeating known mistakes.

Ship small, then operate

A complete small game teaches more than an eternal epic. Put a boundary around scope: one loop, one progression system, a few content types, clean feedback, reliable save data, and a build someone else can install. After release, collect real failures and patch deliberately.

Field notes

  • Never debug only by adding logs to the editor; use player logs and development builds for release-only behavior.
  • Address stripping and engine-code problems only after measuring. Aggressive linker settings can remove reflection-used types.
  • Keep a known-good build artifact. Being unable to reproduce last week's working version turns triage into archaeology.
  • The best launch patch is the one you do not need because release testing covered the actual player path.

Was this lesson helpful?

Sign in to rate