TerryMathews / ambiled-hd

Automatically exported from code.google.com/p/ambiled-hd
0 stars 0 forks source link

[Patch (kinda)] Abiled is slow to get scrape screen #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Screen scraping on my system takes at least 50ms (I have 3 monitors). 
Admittedly I don't have actual hardware, so I am just running drivers I 
compiled. Anyhow in an effort to fix this for people running modern Windows 
(Windows 8 and newer) I wrote a new scraper for you. However google code and 
svn are particularly unfriendly, so I decided to just leave it as a gist for 
now unless there is real interest in further collaboration.

https://gist.github.com/jassmith/0fb5d649ebdf30825d5e

Just subscribe to ScreenUpdated events and it will feed you bitmaps when the 
screens change. It is capable of processing updates MUCH faster than the 
current implementation (<1 ms per frame). There are some side effects of 
course, certain parts of the screenshot at times in some apps are wrong, 
however this works fine for non-fullscreen games and videos. Essentially the 
same limitations of the current scraper.

The current implementation is NOT good enough for a simple merge, it doesn't 
handle configuration changes pretty much at all or have a fullscreen app 
fallback. I am more than happy to continue hacking this and improving the 
scraper, I have quite a few ideas on how to get the latency down (at least on 
the system) to < 1ms total and keep near perfect accuracy.

Oh one last thing, this doesn't handle multiple adapters yet either. It's easy 
enough to add, but there seems to be a resource contention issue if you use a 
naive implementation (which I tested).

Cheers

Original issue reported on code.google.com by jassm...@gmail.com on 28 Dec 2014 at 9:04

GoogleCodeExporter commented 8 years ago
I am glad you worked on this. I love the idea of the ambiled-hd, and I just got 
mine today. I installed it and the screen capture rate is abysmal. Mine takes 
80-100ms to capture the screen.. It is completely unusable! 

I will try out your patch and see how it works for me.

Original comment by Timur.S....@gmail.com on 6 Jan 2015 at 7:46

GoogleCodeExporter commented 8 years ago
The patch is not a finalized thought, I was proposing it to them as a way to 
make their lives easier. The lack of developer feedback however has led me to 
believe my time is probably better spent elsewhere.

Original comment by jassm...@gmail.com on 15 Jan 2015 at 3:50