Space Worms

Phone game lag: is it your connection or your phone?

Jerky movement and late reactions have different causes. A short test to tell a slow connection from a struggling phone, and what Space Worms shows you.

“Lag” is two different problems, and the fix for one does nothing for the other. Before you change any settings, work out which one you have.

Two kinds of lag

  • The phone is struggling. The picture itself stutters. Movement is jerky everywhere, menus included, and it happens online or not. This is frame rate: how many pictures per second the phone manages to draw.
  • The connection is struggling. The picture is smooth, but the game is out of step with you. Your moves land late, other players jump from place to place, or you hit something that looked clear. In an online game the shared match runs on a server, so every move makes a round trip. Round-trip time (often called ping or latency) is how long that takes. Jitter is how much it changes from one moment to the next.

A short test

  1. Play a round offline, if the game has an offline mode. With no server involved, any stutter that is left comes from the phone. If offline is smooth and online is not, look at the connection.
  2. Swap networks. Play one online round on Wi-Fi, then turn Wi-Fi off in Settings and play one on cellular. If only one of them lags, that network is the problem, not the game.
  3. Take the phone to the router. If Wi-Fi is the one that lags, play a round in the same room as the router. If that fixes it, distance or walls are the cause.
  4. Stop other traffic. Video streams, large downloads and photo uploads on the same network share the connection with your game. Pause them and play again.
  5. Feel the phone. Apple’s page on iPhone getting too hot says that above its normal operating range, some apps run with “lower frame rates”, and the cellular signal “might weaken as radios enter a low-power state”. A hot phone can lag both ways at once. Let it cool before you test anything else.

Things that do not help

  • Closing every other app. Apple’s own guidance is to close an app only if it’s unresponsive, and it says closing all your apps does not affect the device’s overall performance.
  • A VPN sold as a lag fix. A VPN sends your traffic through another server on the way, so it can only shorten the trip if its route happens to be better. Test a round with it and without it, and keep whichever is smoother.

How Space Worms handles both

Space Worms is a free arena game for iPhone and iPad that also runs in a browser at space-worms.com. It makes the test above easy to run:

  • Offline mode is built in. Choose Play offline for a solo round against computer-controlled worms, with no connection at all. Since version 1.0.1, offline worms play by the same rules as online ones, so the comparison is fair.
  • You can see the frame rate. The support page says Settings, behind the gear in the lobby, ends with Diagnostics. Its optional Debug mode shows FPS and the real-time factor during online and offline play, and online it compares your local control with the server’s movement. Low FPS offline points at the phone.
  • The arena is picked for you. The App Store listing says you join a live arena with players near you, “placed automatically in the fastest sector”.
  • The game watches the connection too. Its privacy policy says it measures round-trip time, jitter, bandwidth and frame time and sends those numbers to its server to keep play smooth, and that they are not linked to you.
  • A dropped signal is not the end of the round. From the 1.0.1 release notes: if you lose your signal, you go straight back into your own arena.

Playing in a browser on a computer? See playing a browser arena game with nothing to install for the focus and full screen tips. Once the lag is sorted, how to get big covers the rest.

Updated