Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
TroubleshootingNovember 22, 20265 min read

Why your web game lags on iPhone

A browser game that stutters on iPhone is usually drawing too many pixels, too many objects or creating garbage every frame. Here is how to tell which, and fix it.

Startbase Team
Editorial ink illustration of a wind-up toy car straining up a slope beside a stopwatch, the second hand in ember orange

Key takeaways

  • The top cause is rendering at the phone's full pixel density. Capping the resolution scale at 2 (or lower for 3D) often doubles the frame rate.
  • Next come too many draw calls, unbounded particles, and objects created every frame that trigger garbage collection pauses.
  • Low Power Mode and heat both slow iPhones down. Test with them in mind, and measure frame time, not just how it feels.

If your web game runs smoothly on a laptop but stutters on an iPhone, the most likely cause is that it renders at the phone's full screen resolution. Recent iPhones have a device pixel ratio of 3, so a full-screen canvas is nine times as many pixels as the same layout at ratio 1. A laptop GPU shrugs that off; a phone running on battery does not. The next suspects are too many separate draw calls and objects created every frame, which cause garbage collection hitches.

The good news: most fixes keep the game looking the same to the player. Very few iPhone lag problems require cutting features.

Measure frame time before you change anything

At 60 frames per second, each frame has a budget of about 16.7 milliseconds for everything: game logic, physics, and drawing. Steady lag means you are over budget every frame. Hitches (smooth, then a freeze) mean occasional frames blow up, usually from garbage collection, loading, or a spike of work like an explosion.

  • Add a small on-screen frame-time readout (the average and the worst frame of the last second). Ask the agent for one behind a debug flag.
  • Test the published game or a shared preview link on the actual phone, not the desktop browser's phone-size view. The Phone view in the Startbase preview checks layout; it does not have a phone's GPU.
  • Connect the iPhone to a Mac and use Safari's Web Inspector (Develop menu) to record a timeline if you need detail.

Tip

Check Low Power Mode before anything else. On iPhone, Safari limits animation callbacks to about 30 frames per second in Low Power Mode, so the game will feel choppy no matter how well it is optimized.

The causes, most likely first

1. Too many pixels

Many engines default to `window.devicePixelRatio`, which is 3 on most current iPhones. How to check: temporarily force the resolution scale to 1. If the game suddenly runs smoothly (and looks slightly softer), pixels were the bottleneck. The fix: cap the scale at 2 for 2D games and try 1.5 for 3D scenes with lighting and shadows; few players can tell the difference on a 6-inch screen. Pixel art games can often render at a low internal resolution and scale up crisply, which is the fastest option of all.

2. Too many draw calls

Every separate texture, material or object the GPU draws on its own is a draw call. A 2D game with 400 sprites from 400 separate image files might issue hundreds of draw calls per frame. How to check: in a Three.js game, `renderer.info.render.calls` reports the count; in PixiJS, many textures is the warning sign. A starting target on phones is under about 100 draw calls for 3D scenes. The fix: pack sprites into a sprite sheet so they share one texture, reuse materials, merge static level geometry, and use instancing for repeated objects like trees or coins. The glossary entry on draw calls explains why this matters so much.

3. Garbage created every frame

Creating new objects inside the game loop (a new vector for every bullet's position, a new array to filter enemies, new particles for each spark) fills memory until the browser pauses to clean it up. That pause shows up as a hitch every few seconds. How to check: the stutter is periodic rather than constant, and Safari's timeline shows garbage collection at the spikes. The fix: reuse objects. Keep pools of bullets, particles and enemies, and recycle them instead of creating and discarding. Reuse temporary vectors rather than allocating them in every update.

4. Unbounded effects

Particles, trails and screen shake are what make a game feel alive, and they are also the usual reason a game is smooth until the big moment. A combo that spawns 2,000 particles at once can tank a frame. The fix: cap active particles (a few hundred is a sensible starting limit on phones), reuse them from a pool, and prefer fewer, larger particles. Keep the moment, lose the waste.

5. Expensive lighting and shadows in 3D

Real-time shadows render the scene again from each shadow-casting light. Several dynamic lights with shadows can double or triple the work. The fix: one directional light with shadows, a small shadow map (1024 is a good start), bake lighting into textures where things do not move, and use simple materials on distant objects. Level of detail swaps far-away models for cheaper ones.

6. Physics doing too much

Hundreds of active physics bodies, or detailed collision meshes, can eat the frame budget before drawing begins. The fix: let resting bodies sleep, use simple collision shapes (boxes, spheres, capsules) instead of the visual mesh, and remove bodies that leave the play area.

7. Game speed tied to frame rate

Not lag in the performance sense, but it feels like it: if movement is written as "move 5 pixels per frame", the game runs at half speed when the phone drops to 30 frames per second. The fix: scale movement by delta time, the time since the last frame, or run physics at a fixed step.

8. Oversized textures

A 4096 by 4096 background image takes about 64 MB of GPU memory once decoded, whatever its file size on disk. A few of those and Safari starts evicting and re-uploading textures (hitches), or reloads the tab outright. How to check: list your largest images and their pixel dimensions, not their kilobytes. The fix: size textures to how big they appear on screen (rarely more than 2048 pixels on a side for phones), and load each level's art when the level starts rather than everything at boot.

Heat and long sessions

A game that is smooth for five minutes and then slows down may be fine code on a hot phone: iPhones lower their speed when they warm up. A game that slows down steadily, even on a cool phone, more likely leaks memory or keeps adding objects it never removes. Measure after 10 minutes of play, not just at launch.

The message to send the agent

Startbase games run on PixiJS for 2D and Three.js for 3D, and the agent can profile and change engine settings directly. Tell it what you measured, on which phone:

The game runs at a steady 60 fps on my laptop but drops to around 35 fps on an iPhone 15, worst when many enemies are on screen, with a hitch every few seconds. Low Power Mode is off. Please: add a debug frame-time overlay, cap the render resolution scale at 2, pool bullets, enemies and particles instead of creating new ones, cap active particles at 300, pack the enemy sprites into one sprite sheet, and make all movement use delta time. Keep the look and the effects the same. Report draw calls and frame times before and after.

For the full checklist of what makes browser games fast on phones, read game performance on phones. If the lag is really unresponsive input rather than low frame rate, see touch controls not responding.

Frequently asked questions

Why does my game run fine on Android but lag on iPhone?

Common reasons are a higher pixel ratio on the iPhone, Low Power Mode capping Safari at about 30 fps, or a browser feature that behaves differently in Safari. Cap the resolution scale and test with Low Power Mode off.

What frame rate should a mobile web game target?

Sixty frames per second is the usual target, which means about 16.7 milliseconds per frame. A steady 60 matters more than occasional higher peaks.

Does adding the game to the home screen make it faster?

It removes browser bars and can feel more native, but the same engine draws the game, so the performance is about the same. The fixes above still apply.

On this page

  • Measure frame time before you change anything
  • The causes, most likely first
  • Heat and long sessions
  • The message to send the agent

Keep reading

More in Troubleshooting
Editorial ink illustration of an overstuffed card catalog drawer spilling index cards, the brass tab of one card in ember orange
TroubleshootingNovember 22, 2026

Why is my app slow with lots of data?

An app that slows down as data grows almost always loads or draws too much at once. Here is how to find which part is slow and the fix for each.

6 min read
Editorial ink illustration of a border checkpoint with a lowered barrier arm and a waiting parcel, the guard's stamp in ember orange
TroubleshootingNovember 22, 2026

CORS errors explained and fixed

A CORS error means the server you called did not say your website is allowed to read its answer. The fix lives on that server, or in a server function you control.

5 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.