Repository navigation
opt(t27os): transition engine Pareto speed — 3 variants (Closes #12779) - #13129
Merged
Merged
Conversation
Variant 1 — adaptive frame budgets: when pending > TRS_ADAPT_THRESHOLD(5), stage budgets halve (min 2). Backlog consumes ~2x faster on burst. Variant 2 — fast-forward through stages: when pending > TRS_FAST_THRESHOLD(8), skip HIGHLIGHT (start at FADE_OUT) and skip SETTLE (settle to NONE directly). Only the two most important stages run: movement + appearance. ~24% fewer frames per transition on burst. Variant 3 — delta position precompute: TrDelta struct precomputes (dx, dy) movement vectors once; trs_lerp interpolates per frame without calling lg_node_pos. MOVE stage goes from O(nodes * frames) to O(nodes) per stage. Tests: 15/15 (new: adaptive_budget_reduces, adaptive_budget_normal, fast_forward_skips_highlight, fast_forward_skips_settle, delta_positions, fast_forward_reduces_total_frames); t27b --check clean (0 mismatches); seal saved and MATCH. phi^2 + phi^-2 = 3 | TRINITY
gHashTag
enabled auto-merge (squash)
November 2, 2026 13:59
Contributor
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.
Closes #12779.
Pareto speed optimizations for the transition engine (graph_transition.t27):
Variant 1 — adaptive frame budgets: when pending > TRS_ADAPT_THRESHOLD(5),
stage budgets halve (min 2). Backlog consumes ~2x faster on burst.
Variant 2 — fast-forward through stages: when pending > TRS_FAST_THRESHOLD(8),
skip HIGHLIGHT (start at FADE_OUT) and skip SETTLE (settle to NONE directly).
Only the two most important stages run: movement + appearance. ~24% fewer
frames per transition on burst.
Variant 3 — delta position precompute: TrDelta struct precomputes (dx, dy)
movement vectors once; trs_lerp interpolates per frame without calling
lg_node_pos. MOVE stage goes from O(nodes * frames) to O(nodes) per stage.
Tests: 15/15; t27b --check clean (0 mismatches); seals saved and MATCH.
phi^2 + phi^-2 = 3 | TRINITY