Emmanuele Bassi wrote:
> On Sun, 2008-04-13 at 10:43 +0200, Dirk Meyer wrote:
>> First of all, the animation flicker sometimes. It look like the do not
>> use sync to vblank. How do I enable it? I looked around and found
>> clutter.feature_available(clutter.FEATURE_SYNC_TO_VBLANK) which
>> returns True. How do I set a feature?
>
> sync-to-vblank is automatically used unless clutter cannot enable it.
> you're using pyclutter - aren't you also using an nvidia card,
> perchance? there are some problems while using python, clutter and
> drivers/libraries that require dlopen()-ing.

I have an Intel on-board chip. I'm testing on my laptop right now with
an external monitor and the internal LCD switched off. Maybe that
causes some problems with the sync to the primary device. Anyway, is
there a good way to debug this?

> to use Clutter API from different threads you should split the UI
> manipulation code from the rest of the application code; 

That was the fallback plan. Right now our GUI code is more or less
independed from the rest of the code.

> when you need to modify the UI from a thread different than the one
> where the GLib main loop is running, then you can install an "idle
> source" and call the UI code from there:

I'm doing this in my tests and it works well. I guess I will keep it
this way. Freevo calls the gui enter code, the GUI goes into the glib
thread and the main loop blocks while the GUI code is creating the GUI
objects based on the Freevo data structures.

> also YUV2, if the driver suppors it (there's a feature for that as
> well).

Strange, clutter.feature_available(clutter.FEATURE_TEXTURE_YUV)
returns True. IIRC my chip can not do that. Maybe it is done in
software.

>> OK, that's all for now. I hope someone can help us out here.
>
> hope this helps.

That helped, thanks. BTW, is there any doc besides the API reference
and reading the source? My main problem is that the Python bindings
have close to no doc except the examples.


Dischi

-- 
Yesterday is history, Tomorrow is a mystery, Today is a gift. That's
why it's called: The Present.
-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to