RenderHeads / UnityPlugin-AVProLiveCamera

AVPro Live Camera is a Unity plugin for webcams, TV cards and capture cards
https://renderheads.com/products/avpro-live-camera/
11 stars 0 forks source link

Frame rate not consistent #47

Closed georgeUAMTEC closed 1 year ago

georgeUAMTEC commented 1 year ago

Hi Guys

Describe the bug I have been having frame stutter and very bumpy frame rates. Using a 4k camera which we provide to our clients with our built app using your API.

Even at 1080 it seems a little better however after a little time of running it starts to do the same thing. I am running this on an Alien ware RTX, Where our clients have slightly lower spec machines.

Our cam is custom provided from factory.

We test this using Win 10 Camera app running at 4k and recording at Highest possible and does not give us this issue. We also use you capture app and that tends to drop it more. We did our best to optimise where we can.

Are there any recommended settings or ways to optimise when they are running at 4k?

Your Setup (please complete the following information):

Logs I don't get error or logs. Not that I can see

Screenshots Screenshot 2023-02-23 090558

It seems to work really heavy when I am running it in Unity. There is no issue when running the Win App. image

Videos I had to lower there resolution to reduce file size. They have been both captured at 4k

2 videos

Unity at 4k stream/recording https://user-images.githubusercontent.com/126118489/220782810-7383b53c-8817-45e7-b453-31637e1d6c58.mp4

Win Camera app 4k Stream/recording https://user-images.githubusercontent.com/126118489/220782819-29d344b6-67ed-4b76-ba2e-43afdfe2e07b.mp4

Chris-RH commented 1 year ago

Out of interest, what FPS do you get when you build the project on your PC, rather than running it in Unity Editor? Unity will add to the resource overheads, so is not a true test.

Other things to help improve FPS:

Chris-RH commented 1 year ago

Any luck @georgeUAMTEC ?

georgeUAMTEC commented 1 year ago

Hi Chris,

Thankyou for your response!

sorry I couldn't back to you earlier. I would look into it today and let you know how that goes.

Hopefully that will improve this. And will update you on it:)