Repository navigation
Step growth by each frame's own time - #1067
Conversation
Growth tracks, content slides and closing slack stepped in whole 1/240 s substeps and carried the remainder, so at 144 or 165 Hz frames advanced one substep or two and folds juddered. Each frame now takes its whole substeps and then the time left. Adds a 165 Hz growth-reorder scenario to scripts/motion-audit.
The 165 Hz run is a workspace proof, not a new check in the repository.
There was a problem hiding this comment.
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.
|
Windows whole suite ( |
|
New head Per frame,
|
| Scene | 60 Hz | 120 Hz | 144 Hz | 165 Hz | 240 Hz |
|---|---|---|---|---|---|
| keep-stuck fold | 1.0 → 1.0 | 1.0 → 1.0 | 2.0 → 1.002 | 2.0 → 1.002 | 1.0 → 1.0 |
| growing reply (grow) | 1.268 → 1.268 | 1.122 → 1.122 | 1.833 → 1.103 | 1.964 → 1.083 | 1.054 → 1.054 |
| growing reply (gap) | 1.269 → 1.269 | 1.121 → 1.121 | 1.833 → 1.103 | 1.95 → 1.083 | 1.057 → 1.057 |
| Delivery: row height | 1.284 → 1.284 | 1.131 → 1.131 | 1.826 → 1.107 | 1.917 → 1.091 | 1.061 → 1.061 |
| Delivery: Working's place | 1.291 → 1.291 | 1.122 → 1.122 | 1.088 → 1.088 | 1.083 → 1.083 | 1.044 → 1.044 |
| Room: row height | 1.3 → 1.3 | 1.136 → 1.136 | 1.815 → 1.112 | 1.882 → 1.097 | 1.065 → 1.065 |
| Room: panel height | 1.259 → 1.259 | 1.101 → 1.101 | 1.8 → 1.083 | 2.0 → 1.074 | 1.043 → 1.043 |
At 60, 120 and 240 Hz, every frame's state is identical at both commits in all seven rows.
Tests
- macOS, whole suite at
703f5524: 3,088 passed, 1 failed. The failure is the known order-dependentruntime::tests::scroll_children::scroll_xy_with_direct_children_scrolls_both_axes_and_warns_on_trailing_growth_sibling, which also fails ondev.clipboard::macosis included. The general pasteboard's change count was the same before and after (18 → 18).- An earlier run aborted the lib test binary with a foreign exception. It hasn't come back. At both
47195cfaand703f5524,images_and_files_are_written_for_other_appspassed alone, and the whole lib binary ran to its end: 2,180 passed, 1 failed (the same known test). The count didn't move. - One earlier whole-suite run moved the count from 17 to 18. No test reproduces that: every binary that touches a clipboard or a pasteboard ran alone twice with the count unchanged, and the run above didn't move it.
- An earlier run aborted the lib test binary with a foreign exception. It hasn't come back. At both
- Windows, first pass (the lib binary) at
703f5524: 1,966 passed, 15 failed, all 15 also failing ondev, none new. The whole suite follows.
|
|
Windows whole suite ( |
Growth stacks stepped only in whole 1/240 s substeps and carried the rest of the frame's time to the next frame. At 144 and 165 Hz a frame is 1.73 and 1.45 substeps, so frames alternated one substep and two. Every expand, collapse, growing reply and the rows riding them advanced unevenly (judder), while 60, 120 and 240 Hz, which are whole substeps, were fine.
Each frame now takes its whole substeps and then the time left:
runtime/motion/tracks.rs), blocks of fold rows (growth_runs.rs), content slides (content_slide.rs), and a pinned list's closing slack (scroll/bottom.rs, whoseSlackPhase::Closingno longer carries an accumulator).Runtime::grow_acc: removed.The fold, per frame, before and after
Height change per frame of the growing rows in
examples/keep_stuckandexamples/growth_reorder steer(their motion-audit scripts), on the virtual clock:keep_stuck(a fold from a stuck header)growth_reordergapMedian ratio between consecutive frames' height change while moving (1.0 = even):
Unchanged elsewhere
scripts/motion-auditscenario ondevand on this branch, traced at 60, 120 and 240 Hz (37–38 scenarios each). Per-frame element state (e,sc, andgandmcompared as sets) and the end trees are byte-identical.analyze.pyfindings are identical.clipboard::macosskipped).content_slide_tests.rs, one line: it importsSUBSTEPfromcrate::growth. It used to reachSUBSTEPthroughruntime.rs's import, which this change no longer needs. No expectation changed:a_slide_shrinks_with_the_growth_left_to_openanda_growth_that_stops_opening_toward_it_hands_its_speed_to_a_springstill compare againstSUBSTEPandGROWTH.sample(…, SUBSTEP)as before.