DaanVanYperen / artemis-odb-contrib

Drop-in extensions for artemis-odb. Prefab systems, components, networking, events!
MIT License
75 stars 20 forks source link

Delayed/polled event dispatcher #39

Closed DaanVanYperen closed 9 years ago

DaanVanYperen commented 10 years ago

Instead of dispatching events synchronously and possibly causing a stack overflow, run a queue between system calls.

Also reconsider asynchronous events, might be useful across world instances.

see #11

DaanVanYperen commented 9 years ago

If https://github.com/junkdog/artemis-odb/issues/221 gets implemented we can deal with this in an elegant and predictable manner, by dispatching relevant events at the start of processing each system.