PrimaryFeather/Starling-Framework — pull request #147 by joshtynjala (2012-08-11 00:38:11+00:00)
Title: TouchEvent Pooling

I have updated TouchProcessor to use pooled touch events. The pooling is exposed as static functions on TouchEvent. I tried to keep it very similar to the starling.events.Event implementation of pooling. The main difference is that doesn't tie into dispatchEventWith() in any way. TouchProcessor directly calls fromPool() and toPool().

I'm seeing a small FPS improvement when scrolling a Foxhole list on my iPad 1. It's only about 1-3 FPS, but I tested the pooled implementation a number of times to be sure, and it is consistently better than the old implementation with TouchEvents that are not pooled.