How to play · 3D and your computer
How to enable WebGL in Firefox for a 3D browser game
Firefox has WebGL switched on out of the box, so when a 3D game stays flat, blank or refuses to start, something has turned it off or Firefox does not trust your graphics driver. This guide shows where Firefox tells you which one it is, the two settings to check, and what to update. It uses Cashmate, a free neon city tycoon with a 3D view, as the example, because we ran it in Firefox both ways: with WebGL working and with WebGL switched off.
The short version: type about:support into the address bar and find
the Graphics section. If the row WebGL 2 Driver Renderer
names your graphics chip, WebGL works. If it
says WebGL is currently disabled.
, open about:config and set
webgl.disabled back to false. If it is blocked for your driver, update Firefox and
your graphics driver, then restart. Check that hardware acceleration is on under Settings,
General, Performance. Export your game's save before you clear any site data.
What we saw in Firefox
WebGL is how a web page draws with your computer's graphics chip. The 3D city in Cashmate is drawn with it, and so is the flat 2D map in Firefox: the map would use the newer WebGPU where a browser offers it, but the Firefox we tested did not, so it drew the map with WebGL too, and with WebGL switched off it fell back to plain canvas drawing.
We opened the game in Firefox 138, an older release we had installed, on a Mac, in a
fresh profile and without a window on screen, the way test tools run a browser. With the settings
left as they come, the game started in its 3D view, as it does on a desktop or laptop that can run
it. Then we set
webgl.disabled to true and loaded it again:
- The start stayed quiet. The game opened on the 2D map without a message, and the city opened on the map.
-
The 3D button said why. Pressing the button marked 3D brought up
The 3D view could not start on this device.
A third message exists for the rare case that the graphics chip resets while you play, after a
driver update for example: The 3D view lost its graphics context. Back to the 2D map.
In
every case the city and its save stay as they were; only the view changes.
Step one: read about:support
Type about:support into the address bar and press Enter. Firefox opens a page called
Troubleshooting Information
. Scroll down to the section headed Graphics
and look for
two rows, WebGL 1 Driver Renderer
and WebGL 2 Driver Renderer
.
- A graphics chip is named there (on our test Mac, an Apple chip): WebGL works. If a game still fails, go to step three.
-
It says
WebGL is currently disabled.
That is the setting in step two, or Firefox is running in Troubleshoot Mode (below). -
Other rows say
Blocked for your graphics driver version.
or a similar line: Firefox keeps a list of drivers with known problems and holds back features on them. A newer driver is the fix (step three).
The same section has a Failure Log
that records what went wrong when Firefox tried to use
the graphics chip. You do not need to read it all; it is useful to copy into a help request.
Step two: the two settings to check
Hardware acceleration. Open Settings, stay in the General panel and scroll to
Performance. Mozilla's page on
performance settings
explains that you first untick Use recommended performance settings
; the box
Use hardware acceleration when available
then appears. Make sure it is ticked, and restart
Firefox after changing it. The same page notes that
Firefox hides hardware acceleration if your graphics driver isn’t compatible.
If you do not see the box at all, your driver is the thing to update. This box does not switch
WebGL off by itself; the switch that turns WebGL off is webgl.disabled, below, and
Troubleshoot Mode turns it off too. What the box does, in Mozilla's words, is that it
Lets Firefox use your computer’s graphics processor (GPU) to display videos, games and
animations
.
The WebGL switch itself. Type about:config into the address bar.
Firefox warns you first: Mozilla's
graphics driver page
says changing settings there
can have serious effects on your browser’s stability, security and performance
, so change
only this one. Click Accept the Risk and Continue
, search for webgl.disabled,
and if it reads true, press Toggle so that it reads false. False is Firefox's default. Restart
Firefox.
Nearby sits webgl.force-enabled. It makes Firefox skip some of the checks that keep
WebGL off on graphics setups it does not trust. We would leave it alone: if Firefox blocked your
driver, a game that does start may crash or draw wrongly, and an updated driver is the better fix.
Step three: update Firefox and the graphics driver
-
Firefox. Open the menu, choose Help, then About Firefox. Mozilla's
update page
says Firefox then checks for updates by itself and that
Updates are applied after restarting Firefox.
-
The graphics driver. Mozilla's driver page lists where it comes from: on
Windows through Windows Update or the computer maker's own update tool, on Linux through the
distribution's updates, and on a Mac with the system update, since
If there is a graphics driver update, it will be included in the Mac OS X update.
Then, in the page's words:Reboot your computer to use the new graphics driver.
-
Extensions. To rule them out, switch them off one at a time in the Add-ons
Manager (
about:addons) and reload the game. Do not use Troubleshoot Mode for this test: Mozilla's page on Troubleshoot Mode listsHardware acceleration and WebGL
among the things it turns off, so a 3D game cannot start there in any case.
When about:support names your graphics chip again, go back to the game and press the
button marked 3D next to the zoom buttons. On a desktop or laptop the game remembers that choice
and opens in 3D from then on.
Before you clear site data: export your city
Firefox's padlock menu has a button to clear cookies and site data for the page you are on, and some guides suggest it as a fix. For a browser game without an account that deletes your progress: Cashmate keeps your city in Firefox's storage for this site, every 10 seconds and when you leave. So first open Settings in the game and press Export save; your city downloads as a small file. After clearing, choose Import save and pick that file. The full steps for clearing are on Mozilla's page Clear cookies and site data in Firefox.
Still no 3D? The map plays the whole game
Some computers cannot run the 3D view well. The 2D map is the same city with the same goals, shops
and save, drawn from ready-made pictures instead of lit models. The link
/play/?view=2d opens the game on the map without trying 3D first. In
our test the map opened in Firefox even with WebGL switched off (it fell back to plain canvas
drawing). Only if a browser cannot draw the map at all does the game stop on its loading screen
with
Your browser could not start the city renderer (WebGL is required). Please try another
browser.
For what the WebGL message on other sites means in general, see your browser does not support WebGL. Using Chrome? The Chrome WebGL guide has the same checks there. Once 3D runs, the 3D guide explains turning, tilting and building in it. The game is free and has nothing to buy. Coins are an in-game currency and have no cash value.
More guides
Every control, tool and setting: the Cashmate player guide.
-
How to enable WebGL in Chrome for a 3D browser game
Check chrome://gpu, turn graphics acceleration on, and get a 3D game running without losing your save.
-
Your browser does not support WebGL: what it means, what to try
What the WebGL message means, how to check your browser, and what to try first.
-
How to play a 3D city building game in your browser
Turn, tilt and zoom a 3D city in your browser, build in it, and know when the 2D map is better.
-
How to play a city builder in your browser
No download, no account: what you need, the controls, saving and your first minutes.