Closed kvark closed 3 years ago
We had a nasty piece here:
// This is totally unsafe: if multiple threads would start recording render passes into // that uses this swapchain, we'd have a race condition.
// This is totally unsafe: if multiple threads would start recording render passes into
// that uses this swapchain, we'd have a race condition.
It was a shortcut to get things going when the new swapchain model was implement. However, it appears that applications do need that!
The solution involves fancy parking_lot mutex mapping with custom derefs, and it works great:
parking_lot
bors r+
Timed out.
We had a nasty piece here:
It was a shortcut to get things going when the new swapchain model was implement. However, it appears that applications do need that!
The solution involves fancy![portability-diligent-quads](https://user-images.githubusercontent.com/107301/90971552-2488b380-e4df-11ea-922d-9ea802d4383e.jpg)
parking_lot
mutex mapping with custom derefs, and it works great: