Repository navigation
fix(ftl): use child.text instead of child.texture for text updates - #63
Merged
Merged
Conversation
The FTL element API exposes text configs via the text property; assigning a createText() result to texture bypasses the text setter (font tracking, canvas texture baking, MSDF/BMF cache invalidation). This aligns frameworks/ftl with ftl-canvas, ftl-canvas-bitmap and ftl-webgl-bitmap, which already use child.text.
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.
Summary
Verifies the FTL worker adjustment (
child.texture = createText(...)→child.text = createText(...)inupdateManyandselectRandomNode) and aligns all FTL frameworks on the same API.Verification
src/element/element.js):createText()returns a text config handled by thetextsetter (font tracking, canvas texture baking, MSDF/BMF cache invalidation). Assigning it totexturebypasses that path, so.textis the correct API.frameworks/ftl/index.jswas the only FTL benchmark still using.texture(2 sites);ftl-canvas,ftl-canvas-bitmap,ftl-webgl-bitmapalready used.text. No.texture =assignments remain in any FTL benchmark.vite buildpasses for all 4 FTL frameworks.dist/): all 4 FTL frameworks reportStartup!and run the full throughput benchmark toDone!with zero console/page errors (exercises the changedupdate/selectpaths). Non-FTL frameworks (blits,lightning2,lightning2-core,renderer,renderer-canvasfonts) all reportStartup!cleanly.