A browser space game that stutters is almost never short of “internet speed”. The usual causes are that the browser is drawing the 3D scene on the processor instead of the graphics chip, that the laptop is picking its weak integrated chip over its strong one, or that power saving and heat have quietly slowed everything. Work through the steps below in order, because the first three fix most cases and the later ones cost more effort for less. We build a 3D browser game ourselves and have a few real numbers to share, but we also say where we are only passing on general knowledge.
First, work out which kind of lag you have
Three different problems get called “lag”. The picture is choppy all the time, which points at graphics or power. It starts smooth and degrades after a few minutes, which points at heat. Or the picture is fine and your ship responds late, which in a multiplayer game points at the network and in a solo game at a busy processor. Everything below is about the first two, because that is where a weak laptop usually loses.
A quick test costs nothing: open the game alone in a fresh window, with no other tab visible, and watch it for two minutes. If it is smooth there and bad in your usual window, the cause is something else running, not the game. The same applies to a game left in a tab you are not looking at. Chrome’s developer blog says it does not run animation callbacks for pages in the background, and it throttles background timers, so a game you tab away from will stall and then jump when you return. That is normal and not a bug you can tune away.
What our game draws, and what we have and have not measured
This is the part where we can speak from our own work. For release 3.36.0 of Cosmic Starship we ran one seeded battle through a test page that counts what the 3D scene submits to the graphics chip. In our testing it came to about 240 draw calls and about 397,000 triangles per frame, the same figure in the chase, tactical and cinematic camera views and unchanged before and after the code reorganization we were checking. A draw call is a request to the graphics chip to draw one batch of objects, and a triangle is the basic piece those objects are made from.
What that tells you: a busy fleet battle in a 3D browser game is not a small job, and the work scales with how many ships are on screen and how detailed their models are. In our own counts, single hulls run from 816 triangles (the Petrel) to about 14,000 to 17,800 for the larger capitals we counted, and the small craft of our newest civilization have a few thousand each, as we wrote in our note on adding ships we did not draw.
What it does not tell you: how many frames a second any particular laptop produces. Those counts came from a test harness, not from a stopwatch on a weak machine, and we have not measured frame rate on weak graphics cards. So we cannot say “our game runs at X on chip Y”. We can say how the game tries to protect weak machines, because we wrote that code: the Visual effects setting has Adaptive, Full and Performance options. In Performance the 3D view renders at a pixel ratio of 1 instead of up to 1.5, the glow (bloom) filter is switched off, the extra scene lights are hidden and explosions use fewer particles and less debris. The game also reads the system’s reduced-motion preference and has its own Motion setting. If the 3D scene cannot start at all, it falls back to a plainer 2D view.
The fixes, in the order we would try them
1. Make sure the browser is using graphics acceleration
This is the biggest one. WebGL, the technology behind 3D in the browser, needs the graphics chip. If the browser has fallen back to software drawing, the processor does the work and a busy scene crawls. In Chrome the toggle is called “Use graphics acceleration when available”, found in Settings under System (you can also type chrome://settings/system), and it needs a relaunch. To see what Chrome is really doing, open chrome://gpu and look at the WebGL line: “Hardware accelerated” is what you want, and “Software only” means something is wrong, often an old driver or a chip on Chrome’s blocklist. Edge is built on the same engine and has a matching setting under its System and performance page. Firefox keeps its option under Performance in General settings, where you may need to untick the recommended-settings box to see it; we describe the Firefox and Edge menus from general knowledge and did not verify them against the vendors’ pages for this article. Turning acceleration off is a fix for display glitches, not for speed, and on integrated graphics the results vary.
2. Plug in and check the power mode
On battery, laptops typically lower the clock speeds of the processor and graphics chip. Plug in, then check Windows power mode and any battery saver. Chrome and Edge also have energy-saving modes that, as we understand them, can reduce visual effects and frame rates when the battery is low, so check those too. This step alone is the most common difference between “runs fine at home” and “stutters at the café”.
3. Make Windows use the strong chip
Many laptops have two graphics chips: a weak integrated one for saving power and a stronger discrete one. Windows decides which to give each program, and it often gives browsers the weak one. In Windows Settings, under System, Display, Graphics, you can add the browser’s program and set it to High performance, then restart the browser. Microsoft’s own page on this is thin and the steps come from several consistent guides, so check the wording on your version of Windows. If your laptop has only an integrated chip, skip this step.
4. Cut the pixels
The graphics chip’s work grows with the number of pixels it fills. Make the game window smaller, turn off the browser’s zoom above 100 percent, and if the game has a quality setting, use it. In our game, that is Visual effects set to Performance. For any 3D browser game on a weak chip, expect lower quality to help more than any other single setting.
5. Remove the competition
Close other tabs, especially ones playing video or running web apps, and test in a private or incognito window, where extensions are normally switched off. Ad blockers rarely cost frames, but video downloaders, screen recorders and “optimizer” extensions sometimes do. If the game runs better in the private window, turn extensions back on one at a time.
6. Deal with heat
If the game is smooth and then slows after ten minutes, the laptop is probably limiting itself to avoid overheating. Raise the back for air flow, clean the vents if you are comfortable doing so, and keep it off soft surfaces. This is general knowledge about how chips behave, and not something we measured.
7. Update the graphics driver
Get it from the chip maker. Updates fix crashes and wrong colors more often than speed, so put it after the cheaper steps.
What not to bother with
- Clearing the browser cache. It can help a game load, but it does not change frame rate once the game is running.
- “RAM cleaner” and speed-up programs. They tend to free memory the operating system would have released anyway and add background work of their own.
- Reinstalling the browser. It resets settings, but if hardware acceleration is already on and the driver is current, nothing changes.
- Experimental browser flags found in forum posts. Chrome has a flag to ignore its GPU blocklist, and it is a last resort, since the list exists because some chip and driver combinations crash.
- Faster internet. In a solo game, it affects loading, not frame rate.
When the hardware is simply too old
Some machines cannot do it. An integrated chip from the early 2010s may lack the features WebGL 2 games ask for, and no setting will change that. In that case a lighter game is the honest answer, and we list some in our guide to space games for old laptops and in the free browser games list. If you want to try ours, it is here, and the game’s FAQ has a matching entry for slow or black screens, but as we said above, we have not tested it on weak graphics cards, so treat a smooth run on your machine as something to report back to us, not something we promised.
Questions people ask next
Does a phone behave differently? It does, but we have not measured that either. Our game supports phones with on-screen controls, and landscape works best.
Should I use another browser? It can help when one browser has fallen back to software drawing and another has not, so trying a second browser is a cheap test, not a cure.
Key sources: Chrome developers, “Background tabs in Chrome 57”; Chrome developers, “Timer throttling in Chrome 88”; the draw-call and triangle figures come from our own release checks for version 3.36.0.