Repository navigation
Commit af69e6d
committed
tty: a latency is only an input's own answer; refuse AmbiguousInteraction otherwise, and start the launch clock after strobe's set-up
A terminal key sent while an earlier key's answer was still on its way took that answer for its own:
an 80 ms answer read 24.7 ms (Windows), a 50 ms one 0.17 ms (Linux), printed as valid since 0.18.0.
- Pairing: each driver call that sends input begins an action; an action sent while an earlier one
(under 1 s before) had changed no cells, and then answered, overran, and so does every action after
it until 1 s passes without one. Any overrun, burst input or kernel-echoed input refuses every
tty.latency.* and tty.settle.* of the block AmbiguousInteraction, as does busy past half the
samples; never the fast keys kept and the slow ones dropped. Busy is also judged from the grid
after the run (an update spanning the input, a change under 50 ms before it).
- Kernel echo: tcgetattr on the master before each input (ECHO, or ECHONL in canonical mode).
- page.type waits up to 1 s for each paced key's answer (was 300 ms); a key that changes nothing
waits the second and the next is still paced. type(..., { paste: true }) sends one paste
(bracketed once the program set ?2004): one sample. press(key, { burst: true }) sends at once.
- tty.latency.busy and .silent are values, 0 included, where the block has latency.
- Launch clock: started after the pseudo-terminal, the console host and the reader are up; on
Windows right before the suspended process resumes, on Unix right before the spawn.
- A check skips cpu.instructions where only a counter block measures it (linux-promo-2).
Windows: keys-80 back to back now refuses (was 23.3 ms, timed A/B +13% for +290%); spaced 20 -> 80 ms
reads +59.99 ms, A/A same; ready-200 -> ready-500 +301.7 ms with A/A same (was A/A unclear, launches
of 258-1632 ms). Linux: keys-50 refuses (was 0.35 ms, timed -98.8%), cat refuses ECHO (was 47 us);
spaced +60.02 ms; ready +303.0 ms (cgroup set-up still inside the spawn).1 parent 384805d commit af69e6d
4 files changed
Lines changed: 356 additions & 66 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
194 | 197 | | |
195 | | - | |
196 | | - | |
197 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
198 | 207 | | |
199 | 208 | | |
200 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
261 | 301 | | |
262 | 302 | | |
263 | 303 | | |
| |||
686 | 726 | | |
687 | 727 | | |
688 | 728 | | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
689 | 737 | | |
690 | 738 | | |
691 | | - | |
| 739 | + | |
692 | 740 | | |
693 | 741 | | |
694 | 742 | | |
695 | 743 | | |
696 | 744 | | |
697 | 745 | | |
698 | 746 | | |
699 | | - | |
| 747 | + | |
700 | 748 | | |
701 | 749 | | |
702 | 750 | | |
703 | 751 | | |
704 | | - | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
705 | 755 | | |
706 | 756 | | |
707 | 757 | | |
| |||
739 | 789 | | |
740 | 790 | | |
741 | 791 | | |
742 | | - | |
| 792 | + | |
| 793 | + | |
743 | 794 | | |
744 | 795 | | |
745 | 796 | | |
| |||
0 commit comments