Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contribute to Virtual WebCam? #353

Open
johnterickson opened this issue Oct 12, 2020 · 2 comments
Open

Contribute to Virtual WebCam? #353

johnterickson opened this issue Oct 12, 2020 · 2 comments

Comments

@johnterickson
Copy link

@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 to DSLRCam.exe. The PDB refers to bitmapbroadcaster.cs which I don't see in this repo.

@johnterickson
Copy link
Author

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.

@johnterickson
Copy link
Author

I think you'll want to change from

lock(x)
{
 x.DoStuff()
}

to

if (Monitor.TryEnter(x)) {
  try { x.DoStuff(); } finally { Monitor.Leave(x); }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant