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
Game designNovember 22, 20266 min read

How to Make a Web Game Run Smoothly on Phones

A phone browser gives you about 16 milliseconds a frame and a GPU that overheats. Here is where that time goes and the fixes that matter most.

Startbase Team
Editorial ink illustration of a stopwatch strapped to a wind-up toy mouse running along a narrow track, the second hand in ember orange

Key takeaways

  • At 60 fps you have about 16.7 ms per frame for everything. Measure where it goes on a real mid-range phone before optimizing.
  • The usual culprits are too many draw calls, oversized textures, rendering at full device pixel ratio, and garbage collection pauses.
  • Batch sprites with atlases, reuse objects with pools, cap the pixel ratio, and turn off expensive effects on weaker devices.
  • Steady frame pacing matters more than peak frame rate: a constant 60 feels better than a game swinging between 40 and 120.

To make a web game run smoothly on phones, keep every frame inside its budget: about 16.7 milliseconds at 60 frames per second, for game logic, physics and rendering combined. On phones the biggest wins are usually reducing draw calls (batch sprites with texture atlases, share materials), shrinking textures, capping the rendering resolution instead of drawing at the full device pixel ratio, avoiding garbage collection pauses by reusing objects, and scaling back effects like shadows, glow and particles on weaker devices. Always measure on a real mid-range phone, not a desktop.

The frame budget

At 60 frames per second, each frame has 1000 / 60 = 16.7 milliseconds. Some phones refresh at 90 or 120 Hz, which shrinks the budget to 11 or 8.3 milliseconds if you try to match it. In practice, the browser also needs part of that time for its own work, so aim to finish your frame in around 10 to 12 milliseconds at 60 fps.

Phones add two constraints that desktops do not have: thermal throttling (after a few minutes of heavy load, the chip slows down to cool itself, so a game that runs fine for 30 seconds may stutter after 5 minutes) and battery (players notice a game that drains their phone). Test sessions of at least 5 to 10 minutes, not quick checks.

Measure before you optimize

  • Test on a mid-range phone that is a few years old, not the newest flagship. If it runs well there, it runs well for most players.
  • Frame time, not just FPS: watch the time per frame and look for spikes. A game averaging 58 fps with a 100 ms hitch every few seconds feels worse than a steady 50.
  • Profile: browser developer tools can profile a phone connected to a computer (remote debugging), showing whether time goes to scripts, rendering or garbage collection.
  • Count draw calls and objects: most rendering libraries can report draw calls per frame.

Startbase games have an Engine panel with a Perf view alongside Console, so you can watch performance while the game runs in the preview, as the games template docs describe. For real phone numbers, open a shared preview or the published game on the device itself.

Draw calls and batching

A draw call is a request from the CPU to the GPU to draw something. Each one has overhead, and on phones in a browser, that overhead adds up quickly. Rough guidance: a 2D game should comfortably stay in the low tens of draw calls per frame, and a 3D mobile web game is usually safest in the low hundreds or fewer. Ways to reduce them:

  • Texture atlases: pack many sprites into one image. Sprites sharing a texture can be drawn in a single batch.
  • Shared materials in 3D: objects with the same material can be merged or instanced. A palette texture shared by every model (see our low-poly art guide) helps a lot.
  • Instancing: draw many copies of the same mesh (trees, coins, crates) in one call.
  • Avoid interleaving: alternating textures or blend modes in draw order breaks batches. Group by texture where layering allows.
  • Text: frequently changing text can be expensive to re-render. Update scores only when they change, and consider bitmap fonts in 2D.

Games made from Startbase's current templates carry its engine, which draws play in batches, so a level of a thousand crates plays as smoothly as a few, according to the World Editor docs. Your own additions, like custom effects or many unique materials, still count against the budget.

Resolution and pixel ratio

Modern phones have a device pixel ratio of 2 or 3, meaning a screen that is 400 CSS pixels wide might have 1200 physical pixels. Rendering every physical pixel triples or more the work for the GPU, often for no visible gain in a fast-moving game. The top-down shooter guide is a good stress test for these limits.

  • Cap the pixel ratio at around 1.5 to 2 for 3D games. Many developers find the difference invisible at arm's length.
  • Dynamic resolution: lower the render scale automatically when frame time rises, and raise it when there is headroom.
  • Pixel art games can render at their low base resolution and scale up, which is extremely cheap.
  • Full-screen effects (bloom, blur, color grading) cost per pixel, so they get much more expensive at high resolutions.

Assets: textures, models and audio

  • Texture size: a 2048 by 2048 texture uses about 16 MB of GPU memory uncompressed, whatever its file size on disk. Use the smallest size that looks right at the size it appears on screen; 512 or 1024 is plenty for most mobile game textures.
  • Compressed GPU textures (like the KTX2 format) stay compressed in GPU memory and load faster, worth it for 3D games with many textures.
  • Model complexity: simplify meshes for small or distant objects, and use levels of detail for big ones.
  • Audio: compressed formats, short effects decoded up front, long music streamed.
  • Loading: load the first level's assets first and the rest in the background, so the game starts quickly on mobile data.

JavaScript, garbage collection and physics

JavaScript automatically frees memory you no longer use, but that cleanup (garbage collection) can pause the game for several milliseconds at random moments, causing hitches. Phones are slower at it than desktops.

  • Object pools: create bullets, particles and enemies once and reuse them, instead of creating and discarding objects every frame.
  • Avoid per-frame allocations: no new arrays, objects or closures inside the game loop when you can reuse existing ones. Reuse vector objects for math.
  • Fixed physics step: run physics at a fixed rate (for example 60 times a second) with an accumulator, and cap the steps per frame so a slow frame does not trigger a spiral of catch-up.
  • Simple colliders: boxes, spheres and capsules are far cheaper than exact mesh collision.
  • Sleep and cull: skip updating off-screen enemies or let distant physics bodies sleep.

Tip

Particles are the most common hidden cost: each burst creates objects, and many overlapping transparent particles are expensive to draw. Pool them, cap the total count, and halve the count on weaker devices.

Quality tiers for weaker phones

Rather than designing for the weakest device, detect performance and scale. Measure average frame time over the first few seconds, then choose a tier: on the low tier, disable real-time shadows, glow and full-screen effects, reduce particle counts and render scale. The World Editor docs note that Startbase games already do a version of this: a phone or slower computer draws fewer effect particles and lights, and leaves out glow and shadows when it cannot keep up. PWA vs native app covers what a browser game can and cannot do compared with a store app.

A brief for a performance pass

Do a phone performance pass on my 3D arena game. Target a steady 60 fps on a mid-range phone from a few years ago. Cap device pixel ratio at 1.75 and add dynamic resolution that drops to 0.7 render scale when frame time stays above 14 ms. Pool bullets, enemies and particles and remove per-frame allocations from the game loop. Share one palette material across props and instance the crates and trees. Make 1024 the maximum texture size. Add a low quality tier (no shadows, no glow, half particles) chosen from the first 3 seconds of frame times. Show draw calls and frame time in the Perf view, and tell me the before and after numbers.

Common performance mistakes

  • Testing only on a desktop, where everything is fast.
  • Rendering at a device pixel ratio of 3 for a fast action game.
  • One texture per sprite, breaking batching.
  • Creating objects every frame, causing garbage collection hitches.
  • Real-time shadows from every light, when one shadow-casting sun (or blob shadows) would do.
  • Testing for 30 seconds, missing thermal throttling that appears after minutes.

Smooth play is part of game feel; even perfect juice falls flat at 25 frames per second. Fix the budget first, then polish. For a 3D project, how to make a 3D game without coding covers the scope decisions that keep frame time low.

Frequently asked questions

Why is my web game laggy on phones but fine on desktop?

Phones have slower CPUs and GPUs, render at high pixel ratios, throttle when hot and handle garbage collection pauses less well. The usual fixes are fewer draw calls, smaller textures, a capped pixel ratio and reusing objects instead of creating new ones every frame.

How many draw calls can a mobile web game handle?

It varies by device and content, so measure. As a rough guide, keep 2D games in the low tens per frame and 3D mobile web games in the low hundreds or fewer, and batch or instance anything repeated.

Should my game run at 120 fps on phones that support it?

Only if it can do so steadily. A stable 60 fps feels better than a frame rate that swings between 120 and 50, and higher refresh rates drain more battery and heat the phone faster.

On this page

  • The frame budget
  • Measure before you optimize
  • Draw calls and batching
  • Resolution and pixel ratio
  • Assets: textures, models and audio
  • JavaScript, garbage collection and physics
  • Quality tiers for weaker phones
  • A brief for a performance pass
  • Common performance mistakes

Keep reading

More in Game design
Editorial ink illustration of a toy hammer striking a bell on a spring, the impact spark in ember orange
Game designNovember 22, 2026

Game Feel: How to Make Your Game Feel Juicy

Juice is the layer of feedback that makes a tap feel like a punch. Here are the techniques, the timings that work, and how to keep it from drowning the game.

7 min read
Editorial ink illustration of a hand-drawn level map pinned to a desk, the goal flag in ember orange
Game designNovember 22, 2026

Level Design Basics for Your First Game

Good levels teach one idea, test it, then twist it. Here is a repeatable method for designing levels that pace well, read clearly and never feel unfair.

6 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.