On Thu, Jul 24, 2008 at 5:31 PM, Ben Lau <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 24, 2008 at 3:20 PM, Chris Lord <[EMAIL PROTECTED]> wrote:
>> On Thu, 2008-07-24 at 11:20 +0800, Ben Lau wrote:
>>> Hi all,
>>>
>>>    I just create a very simple animation with a text move from left to
>>> right , but it is not smooth , a little bits choppy. Although it is
>>> not serious, it should be able to achieve better quality. Any hints to
>>> improve the quality? Is it related to vblank?
>>>
>>> The source code of sample program is attached. It was tested in
>>> following environment:
>>>
>>> Ubuntu 7.0.4 + Clutter 0.8 / 0.6 + Intel i945 display chip
>>>
>>> Debian SID + Clutter 0.8 / 0.6 +  NVidia 8400 series display chip
>>>
>>> Thanks.
>>
>> Instead of manually setting the framerate to 30fps, you might want to
>> use clutter_timeline_new_for_duration - this will use the default fps
>> (which I think is 60?) Alternatively, you could set a higher fps. But 30
>> will look a bit choppy, especially if it conflicts with your vertical
>> refresh rate (say you have a vblank of 75Hz).
>>
>> --Chris
>
> Hi Chris,
>
> Thanks for your reply. However, even I have changed to use
> clutter_timeline_new_for_duration which use fps = 60. It don't improve
> the quality. It is still choppy.
>

Hi Chris,

I have found out the problem! If I turn off compiz and set fps to 60,
then the animation becomes very smooth! I am not sure it is the
problem of compiz's core or just the matter of a plugin. Will check it
later.

By the way, set the timeline to 60fps raises another problem.  If the
application contain a ClutterGstVideoTexture and playing a 25-30fps
video, the video will be very choppy. Any method to solve it?

Thanks!
-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to