Quick Links: Gideros Home | Download Gideros | Developer Guide
judging performance of lots of listeners - Gideros Forum
judging performance of lots of listeners
  • 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
  • Hi @brendanh,

    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.

  • Thanks for the reply, @atilim - I coded it up and it seems reasonably snappy. All good :-)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID

In this Discussion

Top Posters