Crowsinc / LiveVisionKit

LiveVisionKit brings the powers of computer vision and image processing to OBS Studio; implementing state of the art filters such as image enhancement and real-time video stabilization.
GNU General Public License v3.0
153 stars 14 forks source link

Stabiliser FPS loss on 3090 dedicated #30

Open LonleyViper opened 6 months ago

LonleyViper commented 6 months ago

Testing a 3090 in a dedicated rig after I ran up against FPS drops on a dedicated 2060 suepr rig.

When LVK Stabiliser is running, FPS drops anywhere from 20 to 50% and encoder lag occurs.

Looking at task manager, it looks like the stabiliser uses the "Copy" chip?

Im not sure what I can try here to fix the issue. I assumed that the stabiliser was using cuda cores?

Thanks!

LonleyViper commented 6 months ago

Quick update, changing the video source to 60FPS from 120FPS helped, but FPS still dipping to about 55

LonleyViper commented 6 months ago

2024-01-13 14-31-05.txt

In testing, Im seeing regular crashes

Crowsinc commented 6 months ago

The stabilizer runs on OpenCL but the 'copy chip' is necessary to load texture data in and out of VRAM. What does the copy usage get to with the stabilizer turned on? And what does the frame time text in the top left of the stabilizer' test mode say?

For reference, I get about 14% copy usage, and ~5ms frame time using a 3070ti on a 1920x1080 video.