[Sugar-devel] slow animation performance when moving the mouse

James Cameron quozl at laptop.org
Tue Aug 31 19:49:27 EDT 2010


I've not looked at your video or source, but there is a substantial
difference in context switching between a call to get_pointer versus
using motion_notify_event.

get_pointer should be one round trip to the X server.  The application
will only execute when it wants to.

motion_notify_event is a stream of events from the X server.  When using
that, every move of the mouse results in execution of the application.

(If the application lags behind the event stream, e.g. by not processing
the whole stream before doing the next graphics operation, then some
interesting symptoms result.)

-- 
James Cameron
http://quozl.linux.org.au/


More information about the Sugar-devel mailing list