Bug 1962706 - Change memory budget for_device_loss threshold to 99. r=webgpu-reviewers,ErichDonGubler
We are first dividing the current usage by 100 then multiplying by the threshold. So we could run into a situation where current usage = budget but because we divided by 100 then multiplied by 100, current usage and budget might no longer be equal. Differential Revision: https://phabricator.services.mozilla.com/D246758
This commit is contained in:
@@ -159,7 +159,7 @@ pub extern "C" fn wgpu_server_new(owner: *mut c_void, use_dxc: bool) -> *mut Glo
|
||||
},
|
||||
memory_budget_thresholds: wgt::MemoryBudgetThresholds {
|
||||
for_resource_creation: Some(95),
|
||||
for_device_loss: Some(100),
|
||||
for_device_loss: Some(99),
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user