Skip to content

Server estimate: size meshes by their uploaded GLB, not their package file - #315

Open
GhzGarage wants to merge 1 commit into
mainfrom
claude/server-estimate-mesh-bytes-0e5579
Open

GhzGarage wants to merge 1 commit into
mainfrom
claude/server-estimate-mesh-bytes-0e5579

Conversation

@GhzGarage

@GhzGarage GhzGarage commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Mantle.Check's server memory estimate sized each mesh by its source .uasset before conversion, which is not what uploads. A Nanite .uasset holds the full-detail source plus Nanite data, and a package's size has no fixed relation to the converted GLB's.

Now each static mesh is sized from its render LODs the way the converter would upload them: the published LOD (PublishedLODIndex), the lower LODs it keeps, and the GLB writer's per-vertex layout (48 bytes + 8 for UV1 + 4 for colors, 12 bytes per triangle, small JSON overhead). Nanite meshes count their fallback LOD. Formula coefficients are unchanged; non-mesh assets keep their sizes.

Tests (run; all 6 Mantle.Check.ServerEstimate.* pass): the estimate is within 0.1% of the real GLB the writer produces (plain, UV1+colors, two LODs); a Nanite-style mesh counts its fallback, not its package.

Real-map proof is still open: ShowcaseV2_Terrain's publish logged meshBytes 2.23 GB before conversion (old .uasset sizes) and 4.44 GB after (real GLBs), so the old estimate was low on that map. This change should move Check toward the post-conversion number.

🤖 Generated with Claude Code

…ts package file

Before conversion a Nanite mesh's .uasset holds the full-detail source and Nanite
data, so the server memory estimate overcounted Nanite-heavy places. Estimate each
static mesh's GLB from its render LOD counts as FMantleGlbWriter lays them out.
Coefficients unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant