Repository navigation
Conversation
… preset features - ApplyRuntime looked up runtime.memory.limitMB by GOOS while Validate only accepts the export platform names, so the macos and web limits were never applied; it now maps darwin to macos and js to web. A limit too large for an int64 byte count is refused, and validation errors name the same platform every run. - Clone dropped the name, features, tags, include and exclude of every export preset; Parse accepted any value for them. Names must be unique and without spaces, features and tags non-empty and listed once, tags Go build tag words, and patterns valid path.Match patterns inside the project. - Replace the preset test that only read back a struct literal with round-trip, Clone and refusal tests, and add the runtime.memory tests #1664 asked for. - Restore the Runtime memory and Export preset features sections of the project guide and the gc-and-allocations paragraph the merge train dropped, saying what is not wired up yet.
…tion - #2360 and #2361 both implemented byte progress for #1575: Group.ByteProgress and the BytesLoaded/BytesTotal pair over the same Stats estimates. Nothing used the pair and neither has been released, so remove it, archive its note, and say in the guide that the total grows during a load and is 0 until the first asset finishes. - Add the test #1664 asked for: MemoryPressure releases only groups marked evictable, and only until the manager is within its budget.
…ip settings - #2308 and #2309 both added image maxSize and per-target overrides for #1429, and #2311 the model clips, fps, materials and skipNodes for #1430, without validating any of them: a negative or huge maxSize, a target keyed by an unknown platform, an override with an unknown format or filter, an empty or overlapping slice, a clip name used twice and a material path outside the project all parsed. Validate now refuses them with the field, in sorted key order. - Document every new field, including that game assets and scenemodel do not apply them yet, and correct the Image.Format comment, which still listed four formats. - Replace the override test that only checked Parse returned no error with round-trip and refusal tests for both sections. - Move the paragraph the merge appended to the end of the formats page into the import sidecar entry, restore the scenemodel sentence the merge train dropped, merge the duplicate changelog lines and archive the second #1429 note.
…d check their params - #2254 (texture maps, alpha, cull, depth, uv, shading, toon) and #2257 (shader and params) were merged into one Material without reconciling them: a shader material could still set normalMap, ormMap, the separate maps, emissiveMap, emissive, vertexColors, shading or toon, and params parsed without a shader. Validate now refuses each by its field. - Shader params: a uniform name may appear in one map only, numbers must be finite, and names are checked in sorted order so the reported error is the same every run; the ormMap/metallicMap/roughnessMap check iterated a map too. - Toon controls, map scale and strength and UV values refuse NaN and Inf, and report a *loaderr.Error with the field instead of a bare error. - Document every field of the new types, and say in the resources guide that scenemodel does not apply these fields or bind shader materials yet. - The from-godot tables had rows run together and split by blank lines by the merges, which ended each table after a few rows, and repeated rows; join them back into one table each and drop the repeats.
The schemas follow the doc comments, ranges and enums the project and importsettings fixes added.
… alias The untagged 0.4.0 section listed BytesLoaded and BytesTotal, which this branch removes in favor of Group.ByteProgress.
This branch has not been deployed
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.
Follow-up review of the asset, import settings, project and resource pull requests merged by the merge/2387 train, checked against current main.
#2109 feat: add runtime and asset memory budgets
Problems:
File.ApplyRuntimelooked upruntime.memory.limitMBbyruntime.GOOS, whileValidateonly accepts export platform names, so themacos(GOOSdarwin) andweb(GOOSjs) limits were never applied. It now maps them the waymoddingdoes. A limit too large for an int64 byte count is refused, and validation walks the platforms in sorted order.ApplyRuntimesetting the limit, eviction under pressure releasing only evictable groups. Added.docs/{en,zh}/project.mdand thegc-and-allocations.mdparagraph were dropped by a later merge. Restored.Cloneturned a nillimitMBinto an empty map. It now usesmaps.Clone.#2360 feat: expose asset loading byte progress, and #2361 feat(assets): expose loading byte totals
Both implement the same byte-progress slice of #1575 over the same
Statsestimates (Group.ByteProgressandGroup.BytesLoaded/BytesTotal). Nothing in the repository calls the pair, and v0.4.0 has no tag yet, so this PR removesBytesLoaded/BytesTotal, archives #2361's note, records the decision in #2360's note, and removes the pair's bullet from the untagged 0.4.0 section ofCHANGELOG.md. The guide now explains that the total grows during a load and is 0 until the first asset finishes. #1575 stays open, as it should.#2308 feat: add image import format overrides, and #2309 feat(importsettings): add target overrides
Two branches for the same slice of #1429. Merged, they gave
Image.MaxSize/TargetsandImageOverridewith nothing validated: a negative or hugemaxSize, a target keyed by an unknown platform, and an override with an unknown format or filter all parsed. #2308 had no tests, despite its body saying it did, and #2309's test only checked thatParsereturned no error. This PR validates them by field (platforms fromproject.Platforms, maxSize in [0, 16384]), documents the fields (theImage.Formatcomment still listed four formats), adds round-trip and refusal tests, moves the paragraph the merge had appended to the end offormats.mdinto the import sidecar entry, merges the duplicate changelog lines and archives the second note.#2311 feat: add model import clip metadata
Clips,FPS,MaterialsandSkipNodeswere added with no validation and no tests (the body claimed both). Validate now requires each source animation to be listed once, every clip name to be unique and non-empty,name/loopto go on the slices of a sliced clip rather than on the clip, slices to be non-empty, ascending and non-overlapping, material paths to stay inside the project, and skipped nodes to be listed once. The scenemodel sentence the merge train dropped is restored. The docs now say that nothing applies these fields yet.#2435 test(modding): close the packed archive before TempDir removes it
OK: landed intact.
#2307 feat(project): add export preset metadata
Problems:
File.Clonedroppedname,features,tags,includeandexcludefrom every preset.path.Matchpatterns inside the project. Added round-trip, Clone and refusal tests.game releasestill refuses these keys and nothing reads them yet.#2254 feat(resource): add material texture map fields, and #2257 feat(resource): add shader material parameters
The two were merged into one
Materialwithout being reconciled. A shader material could still setnormalMap,ormMap, the separate maps,emissiveMap,emissive,vertexColors,shadingortoon, andparamsparsed without ashader. Both cases are now refused by field. Other changes:*loaderr.Errorwith their field, where before some were barefmt.Errorfvalues.Every field of the new types is now documented. The
from-godot.mdtables in both languages had rows run together and blank lines left by the merges, which ended each table after a few rows, plus repeated rows. They are joined back into one table each.Verification
go tool nsgo test ./pkg/project/... ./pkg/assets/... ./pkg/importsettings/... ./pkg/resource/...: 0 failed.go tool nsgo test ./internal/repocheck/... ./internal/formattest/... ./pkg/tooling/assetbuild/... ./pkg/scenemodel/...: 0 failed.go run ./tools/gameschema -check(game and import schemas regenerated),go run ./tools/changelog check,bun run verify-notes.Screenshots
None