I have a simple performance question related to animation based on mouse
movement in an activity.
When you move the mouse, a colored rectangle follows the mouse around. When
you click with the mouse, we change the way in which we get the mouse
coordinates to position the colored rectangle (and
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
2 matches
Mail list logo