Why does a browser game lag on a phone?
A browser game lags on a phone for a handful of reasons, most of them outside the game itself: its tab was hidden for a moment, Low Power Mode or Battery Saver is on, the phone is hot, other tabs and apps take its memory, or the browser is out of date. Online play adds a slow connection to the list. Boomer Brawl runs in the phone's browser, and the same checks apply to it.
Lag or a slow connection
Two different things feel like lag when you play on a phone. In the first, the picture itself stutters or freezes because the phone cannot draw the game fast enough. In the second, the picture moves without a hitch, but the other players jump about the arena or your hits land late because the connection between devices is slow.
They have different fixes, so look for which one you see on your screen. A round against bots has no network connection to blame, which makes it a good test. If the picture stutters there, the phone is struggling with the drawing; if it does not, your online connection is the cause.
A slow start is a third thing entirely. The first visit to the page downloads the files of the game, and that initial wait comes from the connection, not from lag in the play itself.
A hidden tab
A browser pauses a page when you switch away from it. MDN Web Docs, Window: requestAnimationFrame() method says most browsers pause the drawing of a page while its tab is in the background, to save performance and battery.
Timers in the code also slow down when hidden. Chrome for Developers, Heavy throttling of chained JS timers explains that Chrome slows the timers of hidden pages to save power.
So a glance at a message in the middle of a round stops the game, and it may stutter for a moment when you come back. Keep the game in front on your screen while you play.
Low Power Mode and Battery Saver
Energy-saving settings make games run slower on purpose. Apple Support, Use Low Power Mode to save battery life on your iPhone or iPad says Low Power Mode saves battery by limiting certain features, among them some visual effects and the screen's brightness. It turns on by itself on some iPhones when the battery runs low.
Android devices use a similar tool to conserve energy. Android Help, Get the most life from your Android device's battery says Battery Saver limits or turns off background activity, so some visual effects, features, network connections and apps may see delays.
Turn these battery features off while you play, or plug the phone into a charger.
A hot phone
A phone slows its own parts down when it gets too warm. Apple Support, If your iPhone or iPad gets too hot or too cold says a phone feels warmer while it runs games heavy on graphics, or charges wirelessly, and that a phone running too hot regulates its temperature, which can change how it performs.
Android Help gives the same advice for battery life: keep the phone cool. Heat forces the processor to throttle its work to protect the device.
Take the phone out of direct sunlight, and take it off a wireless charger while you play.
An old browser, or a phone short of memory
An outdated browser cannot run modern graphics code properly. Many browser games draw with WebGL 2, which MDN Web Docs, in its reference on the newer context, describes as the newer version of WebGL, the drawing interface a page's canvas offers. An old browser without it cannot run these games, or runs them badly.
Update the browser to the latest version, and update the phone's operating system with it. Newer releases patch graphics bugs and improve memory handling.
Close the other tabs and apps you are not using on the device. Each one holds onto memory that the game could use to run its code and draw the screen.
A slow connection, for online play
A weak network link makes other players appear to jump across the screen. Wi-Fi in the next room or a weak mobile signal shows as sudden teleporting or delayed reactions.
The player hosting the room matters the most during online matches. The host's phone or laptop runs the match for everyone in the room, so let whoever has the steadiest connection host the game.
How Boomer Brawl plays on a phone
Boomer Brawl runs directly in the phone's browser with nothing to install, and its first visit downloads about 23 to 25 MB. After that first visit, the files of the game load from the phone's storage. It draws with WebGL 2, so it needs an up-to-date browser to display the action. Online, the host keeps the game open and in front until the round ends. Play with friends has the rest, and the FAQ has the short answers. Boomer Brawl is free in your phone's browser: play a round.
Common questions
Why does a browser game freeze when I switch apps?
Because the browser pauses a page while its tab is in the background, to save battery. The game goes on when you come back.
Does Low Power Mode make games slower?
Yes. Apple's support page says it limits some features and visual effects to save battery.
Why does my phone get hot playing a browser game?
Games heavy on graphics work the phone hard, and Apple's support page names them among the things that make a phone warmer.
Is lag the game or my connection?
Play a round against bots. If the game stutters there too, it is the phone; if not, it is the connection.
Sources
- MDN Web Docs, Window: requestAnimationFrame() method, checked on
- Chrome for Developers, Heavy throttling of chained JS timers, checked on
- Apple Support, Use Low Power Mode to save battery life on your iPhone or iPad, checked on
- Android Help, Get the most life from your Android device's battery, checked on
- Apple Support, If your iPhone or iPad gets too hot or too cold, checked on
- MDN Web Docs, the WebGL rendering context of WebGL two, checked on
Keep reading
- Guides to playing games in the browserPlain answers to what people ask about games in the browser: saves, data, lag on a phone, controllers, touch, join codes, hosting and friends far away.
- FAQ: free, no download, play with friendsFree, no download, no account: short answers on playing with friends by a code, against bots, on a phone, how long a round lasts and what is saved.
- What is a top-down game? Meaning and controlsA top-down game shows the world from straight above, so you see the floor and everyone on it, and you move with one hand while you aim with the other.
- Does a browser game save your progress?Yes, in the browser you play in, on that device. A private window, cleared site data, another browser or another device starts you from the beginning.
- Free browser game to play online with friendsA quick fighting game, free in the browser: host, share the code, and up to three friends join from a phone or a laptop. Nothing to install, no account.
