yojaeon / grip

Automatically exported from code.google.com/p/grip
0 stars 0 forks source link

Calling gesture updates has too much overhead #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the recognizer, when it notices a contact has been updated, it takes too 
long for the actual gesture to get updated. In my test application, sometimes 
the gesture stops updating (so dragging things randomly hiccups and the 
position gets messed up). There are some speedups we can do, like reflecting to 
find the Update method of the gesture ahead of time instead of each time the 
TuioContact is updated.

Original issue reported on code.google.com by thevecto...@gmail.com on 2 Aug 2011 at 8:03

GoogleCodeExporter commented 8 years ago
Took out all of the dynamic Type stuff and used Generics which extend the 
Gesture class, so no more expensive downcasting and reflection.

Original comment by thevecto...@gmail.com on 3 Aug 2011 at 2:27