xythobuz / DisplayBacklight

Ambilight clone for macOS made with Arduino and WS2812 stripes
BSD 2-Clause "Simplified" License
38 stars 2 forks source link

Low FPS #2

Open igor-lemon opened 6 years ago

igor-lemon commented 6 years ago

Hi. I installed and configured your app but I have low FPS, 2-3. I have MacBook Pro 15" 2016 with TOP eq. How to find a reason of freeze ?

xythobuz commented 6 years ago

Huh, well I don't have a Mac Desktop anymore, I'm now running Linux (and I really need to get around to porting this stuff).

Such a low framerate seems really strange. AFAIK, there isn't anything GPU heavy running in my program. But I'm not sure, maybe it's the GPU.

The other thing I can easily imagine: I've only tested up to 10.10 Yosemite, where the API already gave up with anything faster than ~15FPS. Apple may have cut that down further. To be honest, I'm kind of abusing the screenshot API.

Supposedly, there's a better way of getting the image, using the AVFoundation API. I've tried to implement that already here in this branch:

https://github.com/xythobuz/DisplayBacklight/tree/avfoundation

But I've never got it to work. Check it out if you'd like to... :)

igor-lemon commented 6 years ago

Ok. I'll try. Thanks! :)

igor-lemon commented 6 years ago

So, it doesn't work and I don't know Objective-C and Swift :)

Beshelmek commented 3 years ago

Still no way to solve this problem?)