Frame clock: each frame its own origin, ancillary handles outlive the… #129

Manually merged
github merged 1 commit from gh-pr/129/head into gh-pr/129/base 2026-11-26 04:11:36 +00:00
Owner

@⁠gbuyssens on GitHub · 2026-11-23 13:40 UTC · original
gbuyssens:pr/frame-clock → main · +123 −27 · 1 files · 1 commits · merged 2026-11-23 14:13 UTC

… clock tick (#103)

  • GetFrameStatisticsX named the latest origin for every token (with 2–3 frames in flight: a newer frame's). The clock queues the origins it releases and each WaitFrameEventX takes the one it consumed, so a token's statistics carry its own frame's origin.
  • The ancillary handles of a frame event were closed under the clock's lock while the clock thread signalled them outside it (a closed, possibly recycled handle): they are shared with the thread now and close with their last holder.
  • Test: schedules / unschedules while the clock fires, and the origins of three frames in flight (the two frame-clock tests are serialized: one clock per process).
**@⁠gbuyssens** on GitHub · 2026-11-23 13:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/129) `gbuyssens:pr/frame-clock` → `main` · +123 −27 · 1 files · 1 commits · merged 2026-11-23 14:13 UTC … clock tick (#103) - GetFrameStatisticsX named the latest origin for every token (with 2–3 frames in flight: a newer frame's). The clock queues the origins it releases and each WaitFrameEventX takes the one it consumed, so a token's statistics carry its own frame's origin. - The ancillary handles of a frame event were closed under the clock's lock while the clock thread signalled them outside it (a closed, possibly recycled handle): they are shared with the thread now and close with their last holder. - Test: schedules / unschedules while the clock fires, and the origins of three frames in flight (the two frame-clock tests are serialized: one clock per process).
- GetFrameStatisticsX named the latest origin for every token (with 2–3 frames in flight: a
  newer frame's). The clock queues the origins it releases and each WaitFrameEventX takes the
  one it consumed, so a token's statistics carry its own frame's origin.
- The ancillary handles of a frame event were closed under the clock's lock while the clock
  thread signalled them outside it (a closed, possibly recycled handle): they are shared with
  the thread now and close with their last holder.
- Test: schedules / unschedules while the clock fires, and the origins of three frames in
  flight (the two frame-clock tests are serialized: one clock per process).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:11:35 +00:00
github manually merged commit 23c53fc2c2 into gh-pr/129/base 2026-11-26 04:11:36 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-23 14:14 UTC · original

Merged. Checked on Windows 11 with an RX 9070 (RDNA4), merged together with the rest of #110–#129: cargo test --workspace green with the retail samples (shader pack, console DLLs, texture archive), lib tests also with XCL_SPLIT_WAVE64=1; the retail pack still translates 26 698 / 26 698; the FSR4 GPU probe passes; Unicorn Overlord and XDefiant run. Thanks!

**@⁠ivall** on GitHub · 2026-11-23 14:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/129#issuecomment-7103689062) Merged. Checked on Windows 11 with an RX 9070 (RDNA4), merged together with the rest of #110–#129: `cargo test --workspace` green with the retail samples (shader pack, console DLLs, texture archive), lib tests also with `XCL_SPLIT_WAVE64=1`; the retail pack still translates 26 698 / 26 698; the FSR4 GPU probe passes; Unicorn Overlord and XDefiant run. Thanks!
This discussion has been locked. Commenting is limited to contributors.
No description provided.