On Fri, Oct 28, 2011 at 4:36 PM, Lukas Ruetz <[email protected]> wrote:
> I'm sorry - I was not clear enough. I'm not using clutter_threads_add_idle()
> for any video-related stuff - it's just for the application-logic done
> in another thread. I use the callbacks when I finally have to use the
> clutter-API. But when I show a v4l-source this callbacks are never made
> (or suddenly appear after some minutes).

Ooooh, that sounds like the uploads of the video frames are starving
the main loop.

What happens is the main loop processes stuff depending on their
priority. If you always have a texture to upload and that'  happen to
be higher priority than clutter_threads_add_idle(), then the callbacks
given to clutter_threads_add_idle() are never called.

To verify the hypothesis, you can try playing with the priority
property of the sink or use clutter_threads_add_idle_full() which
takes a priority.

That also means that the clutter thread is taking 100% of the CPU?

-- 
Damien
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to