i just stuck that in the beginning of my main step function.. not sure
if thats the proper place but it has made a dramatic improvment.
<webmas
...@deathtodesign.com> wrote:
> its hard to tell if it helped. i totally replaced the touch events
> with the old (5.1) touch methods and it seemed to help slightly. it
> seems to recover from a choke a tad faster.. but it still chokes... i
> cant figure out if this is an issue with something apple related or
> not.. its just so odd that i can go crazy tapping on the 2g and it
> doesnt miss 1 event. but the phones/ipod touch(old) hiccup pretty
> quickly.
> i read somewhere about touch events not getting priority on glviews..
> i dont really know if that is true..
> On Dec 23, 1:48 pm, riq <ricardoques...@gmail.com> wrote:
> > On Tue, Dec 23, 2008 at 7:30 PM, webmas...@deathtodesign.com
> > <webmas...@deathtodesign.com> wrote:
> > > I am almost certain this is the cause of some new issues im having
> > > with my app..
> > > it seems that this new proxy might be too resource heavy, but i might
> > > be wrong..
> > > it seems now when i do rapid succession of touches the touch events
> > > start to not register after about 5 or so. then about 1-2 seconds
> > > later they start working again..
> > mmm.... the new touch has an additional copy.
> > {
> > if( eventsEnabled ) {
> > NSArray *copyArray = [eventHandlers copy];
> > NSEnumerator *enumerator = [copyArray reverseObjectEnumerator]; //
> > XXX this might be the problem
> > for( id eventHandler in enumerator ) {
> > if( [eventHandler
> > respondsToSelector:@selector(ccTouchesCancelled:withEvent:)] ) {
> > if( [eventHandler ccTouchesCancelled:touches withEvent:event] ==
> > kEventHandled )
> > break;
> > }
> > }
> > [copyArray release];
> > }
> > }
> > try replacing with these 2 lines:
> > NSEnumerator *enumerator = [copyArray reverseObjectEnumerator]; //
> > XXX this might be the problem
> > for( id eventHandler in enumerator ) {
> > with this ones:
> > for( id eventHandler in copyArray ) {
> > If this works fast then it is a problem with v0.6.
> > The fix is to add the handlers at the beginning and not at the end.
> > riq.
> > --http://blog.sapusmedia.comhttp://monodiario.blogspot.com