Hello everyone,

if I compile my code with clutter-1.0.8 all animations are smooth - if
I compile the same code with any later version (>=1.0.10) the animations
are stuttering, especially an implementation of a ticker.

My ticker code looks like that:

static void moveTicker(ClutterTimeline *timeline, gint elapsedMsecs,    
                ClutterActor *actor) {
    gfloat x = clutter_actor_get_x(actor);
    if (x < tickerBorder) {
        x = CLUTTER_STAGE_WIDTH(); // reset the ticker
    } else {
        x -= 1.0; // move from right to left
    }
    clutter_actor_set_x(actor, x);
}

void addTicker() {
    // ...
    ClutterActor *textActor = clutter_text_new_full(fontDesc, txt, colour);
    // ...
    Timeline *timeline1 = clutter_timeline_new(2000);
    clutter_timeline_set_loop(timeline1, TRUE);
    g_signal_connect(timeline1, "new-frame", G_CALLBACK(moveTicker),
                textActor);
    clutter_timeline_start(timeline1);
}

Also moving big images (like a slideshow) across the screen looks nice with
1.0.8 but with a later version the image is flickering at the border like the
painting would be to slow. The effect is bigger if multiple animation-
timelines are running.

What do I have to change to get smooth animations with current versions?

System: ubuntu Linux 9.10, Dual-Core 2,6GHz, Nvidia GeForce 9600 with
propr. driver 185

thanks,
Lukas
-- 
To unsubscribe send a mail to [email protected]

Reply via email to