---
title: "Reduce the polycount of a generated model | Spatial Compiler"
description: "Ask for a triangle count and get back a lighter GLB that keeps its texture, plus the measured count for each level of detail."
canonical: https://appliedmanifold.com/use-cases/gen3d/reduce-polycount/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Use cases](https://appliedmanifold.com/use-cases/)
3.  [Generated models](https://appliedmanifold.com/use-cases/generated-models/)
4.  Reduce polycount

# Make your generated model lighter

Tell your agent the triangle count you can afford. Spatial Compiler simplifies the mesh, keeps its texture and reports the count it reached, so your agent can check it against your budget.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys&job=generated-model) [Start with your agent](https://appliedmanifold.com/use-cases/gen3d/reduce-polycount/#get-started)

![Wireframe of the generated TRELLIS wagon, 148,801 triangles](/use-cases/jobs/reduce-polycount/before.webp)

![Wireframe of the same wagon after a hosted compile, 33,657 triangles](/use-cases/jobs/reduce-polycount/after.webp)

Generated, 148,801 triangles

Compiled, 33,657 triangles

-   **148,801**triangles in the generated wagon
-   **33,657**triangles after one hosted compile
-   **$5**Free signup credit for 50 mesh Drafts

Each dark line is a triangle edge.

## Frame rate and download size

Generators write about 150,000 triangles per model, whether the asset is a hero prop or a crate in the background. A scene with 40 of them draws 6 million triangles before anything else loads.

That cost shows up as dropped frames on phones, headsets and the web, and as long downloads for every player.

## What the terms mean

-   ### Polycount

    How many triangles a model has.

    Higher counts cost draw time, memory and download size.

-   ### Level of detail

    A lighter copy of the model that the engine shows when the camera is far away.

    Distant objects stop costing full price.

-   ### UV layout

    The map that says which part of the texture lands on which triangle.

    Spatial Compiler keeps it, so the original texture still fits the lighter mesh.

## How it works

1.  ### Set your budget

    Your agent writes the triangle count into the spec, for example 30,000 for a prop.

2.  ### Compile

    Your first 50 mesh Drafts are free with the $5 signup credit. A full compile starts at $1 and rises with the triangles you send.

3.  ### Check the report

    The report lists the count each level reached, so your agent sees when a model stops short of the budget and can try another setting.

[Read the polycount guide](https://appliedmanifold.com/mesh/reduce-polycount/)

## Questions

### Will the texture still fit after the polycount drops?

Yes. Spatial Compiler keeps the UV layout of your model, so the original texture lands on the same parts of the lighter mesh.

### Can I hit an exact triangle count?

Set the count you want and read the measured count in the report. Dense generated models can stop above the target, and the report shows your agent when that happens so it can try another setting.

[All use cases](https://appliedmanifold.com/use-cases/)

## Use with your agent

Paste the prompt into Claude Code, Cursor or Codex. Your agent connects to Spatial Compiler and comes back with a lighter GLB that keeps its texture and a report of the measured triangle count.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys&job=generated-model) [Try it in the Playground →](https://console.appliedmanifold.com/playground?module=meshfx&item=namaqualand_rocks)

New accounts start with $5 of usage, and you see the price of each job before it runs.

Agent prompt

Connect the Spatial Compiler MCP server at https://spatialcompiler.dev/mcp if it isn't connected yet. Use meshfx to bring my generated GLB down to about 30,000 triangles while keeping its texture, and tell me the triangle count it reached. Run a Draft first. Your first 50 mesh Drafts are free with the $5 signup credit. Ask before running a final compile.

Or add the server yourself in Claude Code:

`claude mcp add --transport http spatial-compiler https://spatialcompiler.dev/mcp`

[Set it up in Cursor, Codex or another agent](https://appliedmanifold.com/docs/mcp/)

Once connected, your agent can call the `starter` tool for a ready fire Draft spec and the exact call that runs it. Your first 100 fire Drafts are free with the $5 signup credit.
