SirLynix / obs-kinect

OBS Plugin to use a Kinect (all models supported) in OBS (and setup a virtual green screen based on depth and/or body detection).
GNU General Public License v2.0
425 stars 29 forks source link

Using Kinect source in OBS tanks performance in-game #78

Open pinecones-sx opened 1 year ago

pinecones-sx commented 1 year ago

It took me a long time to track this down, but using a Kinect source in OBS while running some games (particularly Noita) will tank performance in the game. Using another webcam or no webcam prevents any impact to game otherwise.

For Noita, this may have something to do with the game only being able to use one thread? Not 100% sure.

Made sure everything was updated & reinstalled all related software with no improvement.

Computer specs:

SirLynix commented 1 year ago

Hi, What Kinect are you using?

pinecones-sx commented 1 year ago

Sorry, that was dumb, the v2.

SirLynix commented 1 year ago

The Kinect v2 is handled by a Windows service external to this plugin and ob, could you try to run a few experiments:

this will help to understand what the problem is and if I can do anything about it, obs-kinect already fetches frames from a separate thread.

pinecones-sx commented 1 year ago
SirLynix commented 1 year ago

Alright so from what you're telling me the performance impact comes from the greenscreen effect, which seems a bit odd as you have a good GPU. How many FPS do you have on OBS? What's the GPU usage with and without the greenscreen effect? (without playing any game) Does checking/unchecking the "Use GPU to fetch color-to-depth ..." improves the usage?

pinecones-sx commented 1 year ago

I'll see about the other items later, but checking the "use GPU" box didn't improve performance.

On Mon, Feb 6, 2023, 12:44 AM Jérôme Leclercq @.***> wrote:

Alright so from what you're telling me the performance impact comes from the greenscreen effect, which seems a bit odd as you have a good GPU. How many FPS do you have on OBS? What's the GPU usage with and without the greenscreen effect? (without playing any game) Does checking/unchecking the "Use GPU to fetch color-to-depth ..." improves the usage?

— Reply to this email directly, view it on GitHub https://github.com/SirLynix/obs-kinect/issues/78#issuecomment-1418592850, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKOQBDC3OVXLXIZCYJFU73WWCMWVANCNFSM6AAAAAAURNAJXY . You are receiving this because you authored the thread.Message ID: @.***>