meshfx // POLYCOUNT // WEB

What polycount works for web 3D and browser games

For a browser scene, you can start with about 50,000 to 500,000 triangles on screen on desktop and much less on phones, and keep a single featured model between 20,000 and 100,000. On the web the download also counts, so file size and texture size often matter more than the triangle count.

pyrofx effects work today, and new accounts start with $5 of usage.

MODULE // meshfx AVAILABLE

meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.

  • Desktop frame: 50,000 to 500,000 triangles
  • One featured model: 20,000 to 100,000
  • Textures often outweigh the mesh

01 // STARTING BUDGETS

Starting budgets for a browser scene

  • A product viewer or a single featured model: 20,000 to 100,000 triangles.
  • A character in a browser game: 2,000 to 20,000 triangles.
  • The whole frame in a desktop browser: 50,000 to 500,000 triangles. Phone browsers need much less, so test on one early.
  • The first download: small enough that the first view appears in a few seconds on a phone connection.

02 // FILE SIZE

Shrink the file and its textures

A GLB stores a position, normal and UV for every vertex. Textures also affect download time.

  1. Export the model as GLB, which loads in a single request.
  2. Decimate meshes the camera never sees up close, and add LODs to the rest.
  3. Resize each texture to the largest size it appears on screen, and pack roughness, metallic and occlusion into one ORM texture.
  4. Compress the geometry with Draco (the KHR_draco_mesh_compression extension) when you export, and load it in three.js with DRACOLoader.
  5. Load the scene and read renderer.info to confirm what the frame draws.

03 // MEASURE

Count triangles in three.js

renderer.info.render reports what the last frame drew. Show it on screen while you turn the camera to your busiest view.

stats.js
renderer.setAnimationLoop(() => {
  renderer.render(scene, camera);
  const { triangles, calls } = renderer.info.render;
  statsEl.textContent = `${triangles} triangles, ${calls} draw calls`;
});

Check frame time in the browser's performance panel on a laptop and on a phone. If the triangle count looks fine and the frame is still slow, look at draw calls (one per mesh and material) and at large transparent surfaces.

04 // meshfx

meshfx for web polycount

meshfx reduces toward a triangle budget and makes LODs by count, ratio, explicit budgets or error. Each level reports measured distance, outline and faults. Godot 4 is the supported output target. Hosted meshfx runs are available in the Playground.

06 // FAQ

Web polycount questions

All questions →

README.POLYCOUNT_WEB
How do I make a three.js scene load faster?

Export as GLB, compress geometry with Draco, shrink textures to screen size and load the opening view before streaming the rest.

How do I load a glTF model in three.js?

Use GLTFLoader to load the file and add gltf.scene to your scene, attaching DRACOLoader first if the geometry uses Draco compression.

What is a good polygon budget for a prop in a browser game?

Start browser game props at 200 to 2,000 triangles with small textures, while a single product viewer can afford 20,000 to 100,000.

What is polycount in web 3D?

Polycount is the number of triangles in a model, which drives both rendering speed and GLB download size in a browser.

Explore meshfx outputs

Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.

All effects, guides and explainers →