Open johnterickson opened 4 years ago
Turns out I was able to mitigate the perf issue by setting COMPlus_SpinRetryCount
equal to 0
.
The problem is that the "GetLiveView" keep piling up and it eats more and more threads and then more and more threads are spinning on the lock.
I think you'll want to change from
lock(x)
{
x.DoStuff()
}
to
if (Monitor.TryEnter(x)) {
try { x.DoStuff(); } finally { Monitor.Leave(x); }
}
@dukus I know this #349 is closed but I am interested in contributing some performance optimizations (if I can find any!) for
digiCamControl Virtual Webcam
but I can't find any references toDSLRCam.exe
. The PDB refers tobitmapbroadcaster.cs
which I don't see in this repo.