[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Refreshing windows as often as possible, but not too often



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

> Hmm. But the effect I really want is to use as much CPU as is
available,
> but leave some when needed for stuff like moving the pointer. I can
> write a non-X app that doesn't chew the _whole_ CPU when someone
else
> wants it, why can't it be the same with X?

Surely if the program is a video capture app you have a target "frames
per second" rate you want to capture the image at? If that is the case
(and it should be - capturing video "as fast as possible" will just
lead to a naff playback) you can use a gtk_timeout to invoke the
capturing function so many times a second.

In my experience, the BT848 (the most common Brooktree in use) rarely
captures at more than 30fps and even then only at tiny resolutions
(could be hard disk related through).

You might like to take a look at the source for XawTV which captures
avi's from bttv cards


- ---
 _____ _         _       _____
| __  | |___ ___| |_ ___|   __|_ _ ___        Chris "Ng" Jones
| __ -| | .'|  _| '_|___|__   | | |   |  chris@black-sun.co.uk
|_____|_|__,|___|_,_|   |_____|___|_|_|    www.black-sun.co.uk
            S o f t w a r e

 "Linux is beating Windows" - David Cole, Microsoft Executive

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.5.3i for non-commercial use <http://www.pgpi.com>

iQA/AwUBOAB4N5hmBipjerS3EQLi9gCcDYspMH5LSNkC5djwUuTEMdWW13oAoNIe
4BEQkKqWzQz7Xu7Rha19PhzY
=1oE2
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]