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.

Wireframe of the generated TRELLIS wagon, 148,801 triangles
Wireframe of the same wagon after a hosted compile, 33,657 triangles

Generated, 148,801 triangles

Compiled, 33,657 triangles

  • 148,801triangles in the generated wagon
  • 33,657triangles after one hosted compile
  • $5Free 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

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

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.

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

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.