Skip to content

Text under gliding growth rows moves in whole pixels with its box - #1072

Merged
Hona merged 1 commit into
devfrom
text2-rigid-motion
Nov 17, 2026
Merged

Hona merged 1 commit into
devfrom
text2-rigid-motion

Conversation

@Hona

@Hona Hona commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Text under a folding row (the timeline's tool groups, Thought, any fold_glide stack) now moves as one piece with its box. Before this, on about a third of the fold's frames, it jumped 1 device px against its card border and the lines beside it.

Cause

flowchart LR
  R[row_dy: fractional, changes every frame] --> B[box: round rest + round rigid]
  R --> T[text before: exact rest + rigid, then the baseline rounds on its own fraction]
  T -->|its fraction crosses half a pixel on a different frame from the box's| J[1 px jump against the box]
Loading
  • LeafBox::exact_off placed a text from its exact place, including the growth rows' fractional row_dy, while boxes moved by round(rigid). Each line therefore rounded at its own moment.
  • Inherit::steady is rigid less the growth rows' offsets; scrolls, sticky shifts, containment and a stack's virtual window stay in it. A text lays out from exact_off(steady), so it steps exactly with round(rigid). At rest row_dy is 0, so steady == rigid bit for bit and resting pixels don't change.
  • What the measurements ruled out: the fold's value isn't rounded, glyphs in a line never move against each other, and the ink sum stays constant (no change between atlas and outline, no change in weight).

Card text under "Ran 2 commands", 1.875x, fixed-step 240 Hz frames 34–46 (each tile follows the card border)

Before After
At the PR head vs its parent (0796df5f), 192 frames per run Parent Head
Frames with text off its box or line off line: 1x, 1.25x, 1.5x, 1.875x, 2x 65, 25, 36, 33, 43 0 at every scale, light and dark
CPU painter (--cpu-boot), every third frame of the expand, 1x / 1.875x 6 / 2 of 16 0 / 0
Landing: last step of every line, the card border and its text line 1 lands a frame before its card at 1x all on the block's last frame, at every scale
At rest: GPU sweep, 22 timeline screens × 2 themes, 1x and 1.875x 88 of 88 PNGs byte-identical
At rest: CPU painter and GPU snap, 3 sessions × 2 scales × 2 themes 24 of 24 byte-identical
At rest: Mac Metal headless, fixture scenes × 2 themes × 1x/2x 12 of 12 byte-identical

Copilot AI balanced review requested due to automatic review settings November 16, 2026 12:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Hona

Hona commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

Existing Rune tests on the Mac at head 53e5888: 3,079 passed, 0 failed (clipboard::macos skipped, as always). The Windows suite runs when the farm admits it. Independent check on the same case ('Ran 2 commands', 40 frames after the tap): a one-line form of this fix held the card text's offset to its card border constant on every frame at 1.5x and 1.875x; on base it moves 1 device px on 2-3 frames. This PR is the one to land; I've closed my branch.

@Hona

Hona commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

Windows whole suite (-p rune -p rune-kit) on adais, judged against dev's own failures at 32eb7811 (this lane, whole suite) and eb5ae6c9 (FUNCTION's run, rune only): #1072 53e58885 (17 Nov 18:10): 2836 passed, 17 failed in 170 binaries; also on dev: alloc::disabled_trace_hooks_neither_format_nor_allocate, canvas_input::the_middle_button_drags_only_elements_that_take_it, rune::edit::tests::hidden_multiline_pristine_replace_and_delete, rune::edit::tests::pill_edge_cases_words_lines_bidi_and_direct_text_mutation, rune::edit::tests::the_caret_steps_over_a_pill_in_one_move, rune::input::keycaps::tests::repeated_chords_count_and_named_keys_use_glyphs, rune::native_surface::gpu_tests::mirrored_video_is_exact_cropped_centred_and_toggles_without_a_new_frame, rune::native_surface::gpu_tests::video_gpu_colour_sharpness_geometry_and_lifetime, rune::render::breaker::tests::a_refused_blur_pipeline_draws_unblurred, rune::render::layers::cache_tests::live_scale_zoom_sweep_buckets_during_motion_and_settles_crisp, rune::render::layers::rebind_tests::a_texture_switch_binds_no_parked_target_until_one_returns, rune::render::layers::tests::clipped_single_draw_fades_do_not_allocate_targets, rune::runtime::tests::layout_rows::send_flight_follows_the_measured_bubble_while_earlier_rows_land, rune::runtime::tests::picture_scale::a_changing_static_scale_keeps_the_glyph_atlas_bounded, rune::runtime::tests::picture_scale::text_inside_a_scale_draws_at_that_size, rune::text::macos::smoothing::tests::pipelines_never_share_masks, selectable_text::copy_select_all_and_the_context_menu; none new. Proof 9469818f.

@Hona
Hona merged commit 47195cf into dev Nov 17, 2026
1 check passed
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.

2 participants