Off-World-Live / obs-spout2-plugin

A Plugin for OBS Studio to enable Spout2 (https://github.com/leadedge/Spout2) input / output
https://knowledge.offworld.live/en/spout-plugin-for-obs-studio
GNU General Public License v2.0
523 stars 49 forks source link

Laggy OBS Tools Output when OBS isn't in focus #53

Open fungiboletus opened 1 year ago

fungiboletus commented 1 year ago

Describe the bug The spout output is laggy when OBS isn't in focus.

To Reproduce Steps to reproduce the behavior:

  1. Create a scene with dynamic content.
  2. Start a spout receiver
  3. Start the spout output from the tools menu, and observe the spout receiver display, it's fast and smooth
  4. Focus another application, like the spout receiver and observe a laggy output

Expected behavior No drops in frames should be expected.

About the Software:

About Your Machine :

Additional context

It may be related to #47

The filter output works perfectly fine.

Thanks for your work too, it's appreciated 🙂

campbellwmorgan commented 1 year ago

Hi @fungiboletus could you elaborate a bit more what you mean by dynamic content? I was unable to recreate this with a video playing with the media player.

fungiboletus commented 1 year ago

A video was enough to reproduce. It's just about having something that changes in OBS. What is the resolution you tried ? The lag was more obvious at 4K for me.

campbellwmorgan commented 1 year ago

Right - i will try. Have you tried this with other outputs like NDI? I would imagine you get a similar lag as windows may well be performing some optimisations on the GPU for things that aren't focussed.

fungiboletus commented 1 year ago

NDI is way too slow at high resolutions but the VirtualCam worked a bit better perhaps.

Also, the filter output works well even when OBS isn't focused.