microsoft / MixedRealityCompanionKit

This is a MixedRealityToolkit style repository for code bits and components that may not run directly on Microsoft HoloLens or immersive headsets but instead pair with them to build experiences.
MIT License
591 stars 286 forks source link

Avoid incomplete camera frame capture for black magic capture card frame provider #307

Closed chrisfromwork closed 5 years ago

chrisfromwork commented 5 years ago

When running a debug version of the calibration app, I encounter moments where the frame content in the camera stream appears glitchy/streaky. Looking at the code, there doesn't appear to be anything preventing the frame provider update call from happening at the same time as a frame acquired event. Without this change, it is possible to update the shader resource view to reflect a buffer that is also being overwritten by the frame acquired event.