Files
reims-vgpu/docs
Anees Iqbal 84c8e95747 🐛 Ask a presenting queue's buffers for their submission
The present hold makes a queue's next frame wait for the drawable's
present-scheduled report, which comes only after the presenting buffer is
scheduled. A buffer that does not ask for its CB_SUBMITTED is scheduled at the
platform's submission, and that can wait for the queue's earlier work on the
GPU. On the RTX 3090 host, the Modern Rendering sample's presenting buffer sat
behind its frame's 89 ms pass and was scheduled at the pass's end, 88.6 ms
after its commit. The GPU then stood idle 19 to 22 ms a frame, 12.3 -> 10.2
fps against the set without the hold. Metal schedules a buffer that waits for
nothing within a fraction of a millisecond of its commit, whatever its queue
runs before it.

What changes for the guest:
- Once a buffer of a queue presents a drawable, it and every buffer the queue
  commits after it ask for their submission (RGFX_OP_SUBMITTED), where the
  device answers it.
- The host then schedules each one at its take where it waits for nothing and
  no buffer before it on its queue owes its scheduling. Such a buffer becomes
  Scheduled, and its present is made, at its take instead of at the
  platform's submission.
- Queues that never present ask as before: only commitAndWaitUntilSubmitted's
  buffers ask.
2026-11-14 22:19:07 -08:00
..