Expand description
Seek time between two sectors, from Dave Shadoff’s measurements on re-capped original
hardware (seek.py; his seektime.c and measurements/, MIT: see NOTICE.md). Tier 3:
measured by a person who published the method, not a manufacturer; resolution is one VSYNC
(1/60 s).
The disc is divided into 14 zones of constant sectors per revolution; the head travels about 1606.48 tracks across each full zone. The time is a step function of the track distance plus half a rotation at the target zone, in VSYNCs of 1000/60 ms:
| track distance | time |
|---|---|
| sector gap < 5 | 9 VSYNC + half a rotation |
| <= 80 | 16 VSYNC + half a rotation |
| <= 160 | 22 VSYNC + half a rotation |
| <= 644 | 22 VSYNC + half a rotation + (distance - 161) * 16.66 / 80 ms |
| more | 36 VSYNC + (distance - 644) * 16.66 / 195 ms |
C20: seektime.c begins with if (gap < 2) {3 VSYNC} and then if (gap < 5) (not else if), so the 3-VSYNC value is always overwritten and a gap of 0-1 costs 9 VSYNC + half a
rotation as for 2-4; the printed number is that of the code as written, which is what is
built here. The audio-seek measurement (seekaud_huc: confirmation versus actual playback)
is not applied (U8).
Differences forced by Rust: the reference’s arithmetic mixes int and float; here the
integer parts are i64 with Python’s floor division and every float operation is an f64
one in the reference’s order, so the result is the same double.
Constants§
- TRACKS_
PER_ FULL_ ZONE - VSYNC_
MS - ZONES
- (sectors per revolution, first sector, last sector, rotation ms)