test(victory-gpu): pin clock::ticks_from_counter and ticks #589

Open
github-bot wants to merge 1 commit from github-bot/gh-585 into main AGit
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 10:17 UTC · original
AnastasisKon:vibe/clock-ticks-tests-1705ac → main · +54 −0 · 1 files · 1 commits · open

What this changes

Pins clock::ticks_from_counter / clock::ticks in crates/victory-gpu/src/clock.rs with unit tests. No behaviour change. Refs #588

How it was tested

  • cargo test -p victory-hle -p victory -p victory-gpu -p xtask — 455 passed in victory-gpu (7 new clock tests), 0 failed across all four crates
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings — clean (RC=0)
  • cargo xtask policy — 404 files ok
  • Not needed (no game run; pure arithmetic, platform-independent via counter_frequency())

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md — n/a, no behaviour change
  • New diagnostics are behind a VICTORY_* variable and documented — n/a, no new diagnostics
**@⁠AnastasisKon** on GitHub · 2026-11-28 10:17 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/585) `AnastasisKon:vibe/clock-ticks-tests-1705ac` → `main` · +54 −0 · 1 files · 1 commits · open ## What this changes Pins `clock::ticks_from_counter` / `clock::ticks` in `crates/victory-gpu/src/clock.rs` with unit tests. No behaviour change. Refs #588 ## How it was tested - [x] `cargo test -p victory-hle -p victory -p victory-gpu -p xtask` — 455 passed in victory-gpu (7 new clock tests), 0 failed across all four crates - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` — clean (RC=0) - [x] `cargo xtask policy` — 404 files ok - [x] Not needed (no game run; pure arithmetic, platform-independent via `counter_frequency()`) ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md — n/a, no behaviour change - [x] New diagnostics are behind a `VICTORY_*` variable and documented — n/a, no new diagnostics
Unit tests for the u128 scale/saturate in ticks_from_counter (zero,
identity at the native frequency, ratio scaling, round-down, u64::MAX
saturation) and a monotonicity bracket for the live ticks() read.

Refs #584
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 10:23:19 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/589/head:github-bot/gh-585'
git switch 'github-bot/gh-585'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-585'
git switch 'github-bot/gh-585'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-585'
git switch 'github-bot/gh-585'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-585'
git switch 'main'
git merge --squash 'github-bot/gh-585'
git switch 'main'
git merge --ff-only 'github-bot/gh-585'
git switch 'main'
git merge 'github-bot/gh-585'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.