SimpleDALPlugin icon indicating copy to clipboard operation
SimpleDALPlugin copied to clipboard

Stuttering/dropped frames when using the plugin

Open benfry opened this issue 3 years ago • 4 comments

Thanks for putting this together! It's really helpful.

When using this plugin, I'm seeing a lot of pauses and stuttering (dropped frames or something) as the square moves across the screen. I tested with https://github.com/johnboiles/coremediaio-dal-minimal-example but am not seeing the same behavior. Does that mean the Swift version is just not optimized the same way? Something else going on?

I'm on a 16" MBP running the latest Catalina, and CPU usage never gets above a few percent, so it doesn't seem like it's working too hard.

benfry avatar Oct 07 '20 11:10 benfry

@benfry: Can you please post the plugin code along with how you are communicating with the plugin?

Raj123456788 avatar Oct 07 '20 15:10 Raj123456788

Just a straight git clone of this repo, built using the current version of Xcode. Then opening QuickTime Player, selecting "New Movie Recording" and observing the stutter there (even before hitting the record button).

Doing the same with the Objective-C version (build straight from current source) didn't have the same lag.

benfry avatar Oct 07 '20 21:10 benfry

I'm having the same issues as @benfry. Did the same: cloned the project, opended quicktime and selected the plugin as source camera. Lagging / dropped frames both in the preview and the recorded video.

jsve avatar Nov 18 '20 15:11 jsve

Maybe the problem is specific to QuickTime Player? Testing on macOS 10.14, I saw pretty bad pauses in QuickTime Player, yet the graphics ran smoothly in other applications (Zoom and Vuo).

jlstrecker avatar Jan 26 '21 19:01 jlstrecker