On 2012-04-22 at 21:39, Tyson Neuroth wrote:
> The click action in my app seams to be slow.  Especially in the case of a
> certain part of it where I have a custom file browser I'm trying to make,
> in which you click to scroll down or up.
> 
> The function launched by the click action in this case just moves actors up
> or down, so far just 11 of them.  If I click to fast, nothing happens,
> about 1/2 to 1/3rd of a second is too fast.
> 
> I do wonder if the lag could be related to how clutter_click_action works.
>  Is the performance of a button event different than a click action?

considering that ClickAction is implemented in terms of button-press and
button-release events, then I can't see this being a possibility.

my suggestion is to look at some profiling and or instrumentation of
your code and, failing that, of Clutter.

> Is there a way in which, even even when clicking fast, the functions will
> all still get executed even if there is a delay?

there is no delay for the ::clicked signal handling.

the only delay is set for the long press support; but is only called if
the pointer button remains pressed for the duration of the long press
timeout value.

> Also i am wondering if opacity reduces performance considerably?

opacity by itself doesn't reduce performance, though it may end up
triggering blending paths, and some deferred rendering GPUs may have
issues with that.

> Also, is
> it much faster to hide/show an actor than it is to move it?

not really; both cases will trigger a relayout and a redraw.

> Lastly, is it okay to hide/show an actor which is already hidden/shown?
>  For example,  in a loop where whether an actor is shown or hidden depends
> on a condition, should you check wether actors are already hidden/shown
> before hiding/showing them?

not really, no: clutter_actor_show() and clutter_actor_hide() will just
return if called on a visible, or non visible, actor, respectively.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
Intel Open Source Technology Center
_______________________________________________
clutter-app-devel-list mailing list
clutter-app-devel-list@clutter-project.org
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to