On Mon, 2008-11-17 at 20:50 +1000, Saul Lethbridge wrote:
> I'm trying to allow the user to move my actors around by using the
> ClutterMotionEvent and clutter_actor_set_position. It works, but if I
> move the mouse too quickly the actor is 'left behind' so to speak. If
> I move the mouse back of the actor then slowly move the mouse then I
> can continue to move the actor without having to re-click the mouse
> button. Could the issue be that I am calling the
> clutter_actor_set_position on each callback? I wouldn't have thought
> this would have that much overhead that it would cause this issue.

the "delay" you see is the result of motion events throttling. motion
events are throttled to avoid clobbering the GPU with repaints.

you can set the motion event rate using the:

  clutter_set_motion_events_frequency()

function; the motion events frequency setting will still be limited
superiorly by the default frame rate setting, which is set by:

  clutter_set_default_frame_rate()

the default frame rate controls the default setting for the timelines as
well, so you should be careful when overriding this value.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, Intel Open Source Technology Center

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

Reply via email to