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

Merged
gbuyssens merged 1 commit from upstream-pr/129 into main 2026-11-23 14:13:38 +00:00
gbuyssens commented 2026-11-23 13:40:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gbuyssens on 2026-11-23T13:40:49Z.


… 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).
<!-- greyfinch-sync:ivall/xcl:issue:6560617142 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/129). Originally posted by [gbuyssens](https://github.com/gbuyssens) on 2026-11-23T13:40:49Z. --- … 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).
upstream-sync closed this pull request 2026-11-24 06:57:17 +00:00
ivall commented 2026-11-24 07:00:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T14:14:13Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7103689062 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/129#issuecomment-7103689062). Originally posted by [ivall](https://github.com/ivall) on 2026-11-23T14:14:13Z. --- 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!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!128
No description provided.