Skip to main content

Performance tips

Your players may have much cheaper phones than yours. Check the fps counter in Play mode: 60 is smooth, under 30 feels slow.

Biggest wins first​

  1. Shadows — the most expensive thing to draw. Keep one shadow-casting light (the sun; its Shadow cascades cost one extra shadow draw each, so 2 on phones); turn Casts shadows off on lamps and on small objects; or turn all Shadows off in Project settings.
  2. Quality levels — set up Low, Medium and High in Project settings and let players pick one (event Set graphics quality, or game.quality.level in a script).
  3. Max pixel ratio — 1 to 1.5 is plenty on phones (Project settings). Higher values draw many more pixels for little visible gain.
  4. Materials — Matte (fast) and Unlit are cheapest; use Realistic only where it shows. Glass (Transmission) and Mirror each draw the scene again, so keep them to one or two in view; a few small ones are fine, a whole street of windows is not.
  5. Antialias — leave it off for low-end phones. If edges look rough, use Anti-aliasing (FXAA) in a post-processing profile: it costs far less. Of the effects, depth of field and ambient occlusion are the heavy ones.
  6. Particles — lower Max particles per effect and for the whole project; use fewer, bigger particles.
  7. Models — low-poly models and small textures (1024 px or less). Reusing the same model many times is cheap.
  8. Copies — the game draws copies of the same shape and material (trees, fence posts, coins, tiles) together in one go, so hundreds are cheap. It does this by itself for objects that only have a Mesh (and maybe a Collider, or a Physics body set to Static): no moving Physics body, behaviors, animation or script-given own material. Copies close together are drawn per area, so the camera can skip far ones; copies spread out (a forest round a town) are drawn in a few bigger groups. Objects that move, hide or are destroyed still work. Watch calls in Play mode to see it. Objects drawn one by one so occlusion culling can skip them still have their shadows drawn together.
  9. Fog — hides far-away things and lets you keep worlds small.
  10. Remove what’s gone — use Destroy when far on bullets and spawned objects, and destroy things behind the player in runners.

Physics​

  • Use static bodies for everything that never moves.
  • Prefer Box / Sphere / Capsule colliders over Exact mesh for moving objects.
  • Don’t leave hundreds of dynamic objects piled up — destroy old ones.

Events and scripts​

  • Prefer triggers (⚡) and Every X seconds over checking every frame when you can.
  • Pick objects with conditions instead of looping over everything.
  • In scripts, multiply by dt, and avoid game.select() inside update() for many objects every frame — keep references.