Hi Folks,
I'm just starting out with Gideros and LUA, and I'm very impressed so far with the smooth ride it's been!
I'm trying to get an idea of the performance penalties for lots of listeners in my app.
I have an application that divides the screen into a grid of sprites, and I want each to be responsive to touch/mouse events.
Can anyone comment on the performance of having, say, 100 sprites on the screen listening to touch/mouse events?
The alternative I guess is to have higher level listeners on some of the "container" sprites, and then doing some coordinate math to work out the appropriate child sprite to receive the event.
Thanks for any input people can provide.
Cheers,
-Brendan
Comments
Most probably you won't get any problems with lots of listeners. 100 sprites with independent mouse/touch listeners attached to each of them should be pretty fast.