Skip to main content

set_gpu_wait_timeout

Function set_gpu_wait_timeout 

Source
pub fn set_gpu_wait_timeout(timeout: Duration)
Expand description

Sets how long the platform interop helpers wait on GPU work before they give up with a timeout, instead of blocking forever on a hung device.

The default is 30 seconds. Destroying a helper whose work did not finish in time leaks its GPU objects rather than freeing memory the device may still use.