Pin clock::ticks_from_counter with unit tests #584
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:15:16Z.
Step toward steadier host timing on the native path.
crates/victory-gpu/src/clock.rshasticks_from_counter(count, frequency)with no tests: the u128 multiply/divide againstcounter_frequency()(1e9 on posix) and the saturation atu64::MAXare unpinned.Add unit tests covering: zero count, exact scaling at frequency == counter_frequency(), rounding down for non-divisible products, and saturation for huge counts. No behaviour change.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:15:19Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T10:15:28Z.
Claimed by @AnastasisKon. Open a draft pull request with
Refs #584in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:37:09Z.
/release - done: PR #585 pins
clock::ticks_from_counterandtickswith unit tests. Carried in my fork'smain(AnastasisKon/Native-Victory-macOS @69146296) with the full gate green (tests, clippy for Windows -D warnings,cargo xtask policy). Nothing merges upstream while the port is paused, so freeing the queue rather than holding a claim nobody can act on.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T12:37:17Z.
Released. This issue is free to claim.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T17:05:58Z.
The tests this asks for are in the tree already (the mapping, the FXSAVE accessors, the clock scaling and
normaliseare all pinned); closing.