Skip to content

Device::poll with Maintain::Wait returns early and with an incorrect value when a 5-second timeout is reached #4589

Closed
@KSchmidAmilar

Description

@KSchmidAmilar

We're using wgpu to do some computing tasks where individual compute passes will take more than CLEANUP_WAIT_MS. In the case of a long running compute pass, waiting on the submission index with a Maintain::Wait or Maintain::WaitForSubmissionIndex will return after the timeout is exceeded, even if the task is not complete. It will also return true indicating the queue is empty if there's nothing else in the queue.

This timeout should be configurable. If that's hard, in the meantime, if this timeout is reached, device::poll call should return false to indicate there is still an item in the queue. Regardless, this behavior should be documented.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions