upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorenlight3d <19186686+enlight3d@users.noreply.github.com>2026-12-02 01:11:52 +0100
committerenlight3d <19186686+enlight3d@users.noreply.github.com>2026-12-02 03:31:18 +0100
commit4b735e5556992f763bded5835211b3166caa7583 (patch)
tree111e71870f4a6f56a6c4dda119ba9f179d880dfb /runtime/src/xma2_decoder.cpp
parentd741a9f8f647e91756d6962e29a93b698defc19a (diff)
d3d12: time each begin and end of a pipeline wait under its count's lock (D3D12-COLD-START-SKIPS follow-up)
After a wait, wait_in read the clock once, before taking the lock of the frame's count and that of the pipeline's own count, and told both ends that time. A thread stopped between the read and the lock had its end told after events with later times, and Waited took the order it was told as the order of the times (review of pull request 3000): - andrew-ai: A waits 0-20 ms, B 10-85 ms; with A's end told after B's, a wait at 86 ms was left 80 ms of 100 instead of 15, and a pipeline both waited for was charged 20 ms instead of 85; - merzleckeier: A waits 0-10 ms, B 40-50; with A's end, read at 10, told after B began, B was left 60 ms instead of 90, the frame had 50 left instead of 80, and the pipeline was charged 50 instead of 20. Each begin and end is now timed under the lock of the count it goes into, through a seam (trait Waiting: the clock and the wait; Real in the title), so a count is told them in the order of their times. Waited keeps the latest time it has seen and takes an older one as that: an end gives back nothing, a begin counts nothing twice. The frame's end is timed right after the pipeline's, before the log lines. A wait still counts until its end is timed: a thread stopped after its wait and before it reads the time counts as waiting meanwhile (test a_wait_counts_until_its_end_is_timed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions