[clutter] How can I avoid _clutter_do_pick at motion event?

2009-12-23 Thread Rubric
Hi there.

I encountered a problem of rendering performance
when I drag the pointer on a touch device during clutter application
is playing.

In case of embedded system, since glReadPixel has terrible performance,
I wish to avoid _clutter_do_pick at motion event in my clutter application.

Is there any method?

Thank you.


Re: [clutter] How can I avoid _clutter_do_pick at motion event?

2009-12-23 Thread jiangwei zhou
Title: Samsung Enterprise Portal mySingle
as far as i know, if the actor(i mean any actor and subactor 
classes) implenents the clutter_actor_pick
the clutter_do_pick will work, so if you want to remove the penality,
you can disable the clutter_actor_pick in those sub-actor class's implementation, 

just disable it in those xxx_class_init(), rebuild and try 

best regards.--- Original Message ---Sender : Rubricrubri...@gmail.comDate   : ??? 23, 2009 19:59 (GMT+09:00)Title  : [clutter] How can I avoid _clutter_do_pick at motion event?Hi there.
I encountered a problem of rendering performance 
when I drag the pointer on a touch device during clutter application is playing.
In case of embedded system, since glReadPixel has terrible performance,
I wish to avoid _clutter_do_pick at motion event in my clutter application.
Is there any method?
Thank you.
N‹§²æìr¸›zǧu©šŠ[hr[­µêþº{.nÇ+‰·¨…©Ýr‰

Re: [clutter] How can I avoid _clutter_do_pick at motion event?

2009-12-23 Thread Emmanuele Bassi
On Wed, 2009-12-23 at 19:59 +0900, Rubric wrote:
  
 In case of embedded system, since glReadPixel has terrible
 performance,

that's not entirely true for *every* embedded system. I'd suggest you
ask for a better driver.

 I wish to avoid _clutter_do_pick at motion event in my clutter
 application.
  
 Is there any method?

clutter_set_motion_events_enabled() will stop trying to find out the
actor underneath the pointer - but it will disable event delivery on
actors, so that only the Stage will emit pointer-related signals, like
button-press, button-release and motion. also, enter and leave signals
will not be emitted.

ciao,
 Emmanuele.


-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com