ldarren / pico-client

pico html5 framework
1 stars 1 forks source link

Use reactor method to handle trigger #35

Closed ldarren closed 9 years ago

ldarren commented 9 years ago

right now we are using window.setTimeout(function, 0) to delay trigger, but this is very inefficient when a lot of trigger being schedule.

One solution is use reactor way to schedule tasks in rogue game

ldarren commented 9 years ago

added in 21d83fb4b3fca14c7429424c75779e98116ba7bc