Here's a faster way to get a frame using PyGTK:
https://www.pastery.net/xafjmn/
Takes around 5ms per frame for me, rather than 50.
Slightly shorter code (still using the same method): https://askubuntu.com/a/400384/73044
https://www.pastery.net/xafjmn/
Takes around 5ms per frame for me, rather than 50.
Slightly shorter code (still using the same method): https://askubuntu.com/a/400384/73044