Repository navigation
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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